overleaf/server-ce/init_scripts/99_run_web_migrations.sh
mserranom 5412e38cb5 Rebranded SHARELATEX_IS_SERVER_PRO env variable
GitOrigin-RevId: 4e728fa7da5ea6b0132452865a3725ef86ed94da
2024-02-09 09:05:50 +00:00

13 lines
304 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
if [[ "${OVERLEAF_IS_SERVER_PRO:-null}" == "true" ]]; then
environment="server-pro"
else
environment="server-ce"
fi
echo "Running migrations for $environment"
cd /overleaf/services/web
npm run migrations -- migrate -t "$environment"
echo "Finished migrations"