mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Fix how we run web migrations after restore
This commit is contained in:
parent
51f3e31838
commit
0173872cc2
1 changed files with 1 additions and 2 deletions
|
@ -84,10 +84,9 @@ function restore-mongo () {
|
|||
# TODO: select either server-ce or server-pro migrations
|
||||
## Run web migrations
|
||||
# shellcheck disable=SC1004
|
||||
|
||||
"$TOOLKIT_ROOT/bin/docker-compose" exec sharelatex bash -lc '\
|
||||
cd /var/www/sharelatex/web && \
|
||||
[[ -d migrations ]] && npm run migrations -- migrate -t server-pro'
|
||||
if [[ -d migrations ]]; then npm run migrations -- migrate -t server-pro; fi'
|
||||
|
||||
## Stop services again
|
||||
"$TOOLKIT_ROOT/bin/docker-compose" stop sharelatex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue