#!/usr/bin/env bash set -e cd "$(dirname "$0")" source .dev-state/env.sh # Pick up any local plugin source changes before booting the server. # install-plugin copies ./dev-deploy into Saltcorn's # plugins_folder/.../localversion/, so source edits go live on each restart. # Failures here are non-fatal: the previously-installed version still loads. saltcorn install-plugin -d ./dev-deploy 2>&1 | tail -2 || true # Saltcorn's SQLite session store writes sessions.sqlite at process cwd # (packages/server/routes/utils.js). Run from inside .dev-state/ so each # instance gets its own sessions.sqlite alongside its saltcorn.sqlite. cd .dev-state exec saltcorn serve "$@"