dev_server.sh 375 B

123456789101112131415
  1. # Run a development server to debug the app.
  2. #
  3. # Depends on development shell.
  4. #
  5. # Run with:
  6. # nix-shell --run scripts/dev_server.sh
  7. STATEDIR=/tmp/drawio_dev_server_state
  8. rm -r $STATEDIR
  9. mkdir $STATEDIR
  10. pushd src/main/webapp # serve this directory
  11. DRAWIOVERBOSE=1 NODE_PATH=$NODE_PATH:../../collab/common node ../../collab/server/run_server.js --state-dir $STATEDIR
  12. popd