mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 20:52:06 +00:00
5412e38cb5
GitOrigin-RevId: 4e728fa7da5ea6b0132452865a3725ef86ed94da
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"
|