mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
d5dd92c034
[misc] align directory layout of server-ce/pro with production docker images GitOrigin-RevId: d3e6b9f8793e83df59f86105d511c6fb87c3eea3
13 lines
306 B
Bash
Executable file
13 lines
306 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [[ "${SHARELATEX_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"
|