# Run a development server to debug the app.
#
# Depends on development shell.
#
# Run with:
#   nix-shell --run scripts/dev_server.sh

STATEDIR=/tmp/drawio_dev_server_state
rm -r $STATEDIR
mkdir $STATEDIR

pushd src/main/webapp # serve this directory
DRAWIOVERBOSE=1 NODE_PATH=$NODE_PATH:../../collab/common node ../../collab/server/run_server.js --state-dir $STATEDIR
popd
