diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1fb7237..ccd9ec3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ deploy_stage: # restart Node.js and reload nginx configuration - sshpass -p "${OLDROOTPWD}" ssh root@rockfic.com 'bash ~/cp.sh' - - ssh rockfic@${DEPLOY_SERVER} 'mongosh mongodb://localhost --eval "'"use ${DB_NAME}; db.dropDatabase();"'"' + - ssh rockfic@${DEPLOY_SERVER} 'mongosh mongodb://localhost --eval "'"use ${DB_NAME}; db.dropDatabase();\"" - ssh rockfic@${DEPLOY_SERVER} 'mongorestore -d rockfic_old dump/rockfic - ssh rockfic@${DEPLOY_SERVER} 'cd migrator && bun install && bun run ./index.ts' - ssh rockfic@${DEPLOY_SERVER} node run "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1