refactor(ci): add db name argument to staging script

This commit is contained in:
parent c28b92f2d7
commit 7cd18c91ab
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -48,7 +48,7 @@ deploy_staging:
# 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} "~/stage.sh" - ssh rockfic@${DEPLOY_SERVER} "~/stage.sh" ${DB_NAME}
- 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} sudo systemctl reload apache2 - ssh rockfic@${DEPLOY_SERVER} sudo systemctl reload apache2
except: except: