mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[misc] align directory layout of server-ce/pro with production docker images GitOrigin-RevId: d3e6b9f8793e83df59f86105d511c6fb87c3eea3
14 lines
306 B
Bash
Executable File
14 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"
|