mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 21:30:59 +00:00
14 lines
307 B
Bash
14 lines
307 B
Bash
|
#!/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 /var/www/sharelatex/web
|
||
|
npm run migrations -- migrate -t "$environment"
|
||
|
echo "Finished migrations"
|