mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-04 21:34:53 -05:00
12befda220
[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"
|