mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-23 05:00:07 +02:00

[server-ce] add script for checking on old ShareLaTeX env vars GitOrigin-RevId: a60d6f7648d65c336054795affe91a349aa629cf
13 lines
304 B
Bash
Executable file
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"
|