refactor(ci): set bun env to production
This commit is contained in:
parent
5b368cf832
commit
a74126daeb
@ -47,9 +47,9 @@ 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 <(echo -e \"use rockfic_old\ndb.dropDatabase()\nuse ${DB_NAME}\ndb.dropDatabase()\")"
|
- ssh rockfic@${DEPLOY_SERVER} "mongosh <(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} 'mongorestore --drop -d rockfic_old dump/rockfic'
|
||||||
- ssh rockfic@${DEPLOY_SERVER} 'cd migrator && bun install && 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'
|
||||||
- ssh rockfic@${DEPLOY_SERVER} node "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1
|
- ssh rockfic@${DEPLOY_SERVER} node "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1
|
||||||
- ssh rockfic@${DEPLOY_SERVER} systemctl reload apache2
|
- ssh rockfic@${DEPLOY_SERVER} systemctl reload apache2
|
||||||
|
Loading…
Reference in New Issue
Block a user