15 lines
625 B
Bash
Executable file
15 lines
625 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -e
|
|
cd "$(dirname "$0")"
|
|
source .dev-state/env.sh
|
|
|
|
# See startServer.sh for the rationale. Note: `dev:serve` watches Saltcorn
|
|
# repo files but explicitly ignores plugins_folder/, so plugin source edits
|
|
# still need an install step to land in localversion/ -- this handles it.
|
|
saltcorn install-plugin -d ./dev-deploy 2>&1 | tail -2 || true
|
|
|
|
# dev:serve spawns `npm run tsc`, which needs cwd=upstream root.
|
|
# Side effect: sessions.sqlite lands in saltcorn/ (not .dev-state/) when using
|
|
# dev:serve. Don't run this alongside ./startServer.sh on the MAIN instance.
|
|
cd saltcorn
|
|
exec saltcorn dev:serve "$@"
|