fix(ci): terminate sed command

This commit is contained in:
parent 2e781f6c2e
commit 6fd50a9c83
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -49,7 +49,7 @@ deploy_stage:
- sshpass -p "${OLDROOTPWD}" ssh root@rockfic.com '~/cp.sh'
- ssh rockfic@${DEPLOY_SERVER} "mongosh mongodb://localhost <(echo -e \"use rockfic_old\ndb.dropDatabase()\nuse ${DB_NAME}\ndb.dropDatabase()\")"
- ssh rockfic@${DEPLOY_SERVER} 'mongorestore --drop -d rockfic_old dump/rockfic'
- ssh rockfic@${DEPLOY_SERVER} 'sed -Ei "s,(hasMigrated = )false,\1true" rockfic-staging/lib/dbconfig.ts'
- ssh rockfic@${DEPLOY_SERVER} 'sed -Ei "s,(hasMigrated = )false,\1true," rockfic-staging/lib/dbconfig.ts'
- ssh rockfic@${DEPLOY_SERVER} 'cd migrator && bun install && bun run ./index.ts'
- ssh rockfic@${DEPLOY_SERVER} node "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1
- ssh rockfic@${DEPLOY_SERVER} systemctl reload apache2