refactor(ci): add sed invocation to production deployment

This commit is contained in:
parent 624e2b060f
commit 7a9d58975c
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -65,6 +65,7 @@ deploy_production:
- rsync --archive --del ${CI_PROJECT_DIR}/ root@${DEPLOY_SERVER}:/home/@rockfic/
- scp ${ENV_FILE} root@${DEPLOY_SERVER}:/home/@rockfic/.env
#- rsync --archive --delete ${CI_PROJECT_DIR}/cnf/ ${DEPLOY_USER}@${DEPLOY_SERVER}:~/cnf/
- sed -Ei "s,(hasMigrated = )false,\1true," /home/@rockfic/lib/dbconfig.ts
- ssh root@${DEPLOY_SERVER} node "/home/@rockfic/.output/server/index.mjs" \&\>/dev/null \& disown \%1
- ssh root@${DEPLOY_SERVER} sudo systemctl reload apache2
only: