fix(ci): unquote commands

This commit is contained in:
parent 8787a1255e
commit 529120e936
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -47,8 +47,8 @@ deploy_stage:
# restart Node.js and reload nginx configuration # restart Node.js and reload nginx configuration
- sshpass -p "${OLDROOTPWD}" ssh root@rockfic.com '~/cp.sh' - sshpass -p "${OLDROOTPWD}" ssh root@rockfic.com '~/cp.sh'
- ssh rockfic@${DEPLOY_SERVER} "mongosh mongodb://localhost:27017 <(echo -e \"use rockfic_old\ndb.dropDatabase()\nuse ${DB_NAME}\ndb.dropDatabase()\")" - ssh rockfic@${DEPLOY_SERVER} mongosh mongodb://localhost:27017 <(echo -e "use rockfic_old\ndb.dropDatabase()\nuse \${DB_NAME}\ndb.dropDatabase()")
- ssh rockfic@${DEPLOY_SERVER} "mongosh mongodb://localhost:27017/${DB_NAME} --eval 'db.dropDatabase()'" - ssh rockfic@${DEPLOY_SERVER} mongosh mongodb://localhost:27017/${DB_NAME} --eval 'db.dropDatabase()'
- ssh rockfic@${DEPLOY_SERVER} 'mongorestore --drop -d rockfic_old dump/rockfic' - ssh rockfic@${DEPLOY_SERVER} 'mongorestore --drop -d rockfic_old dump/rockfic'
- ssh rockfic@${DEPLOY_SERVER} 'cd migrator && bun install && NODE_ENV=production bun run ./index.ts' - ssh rockfic@${DEPLOY_SERVER} 'cd migrator && bun install && NODE_ENV=production bun run ./index.ts'
- 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'