fix(ci): add sudo

This commit is contained in:
parent 813feaa31c
commit ce4945f623
Signed by: tablet
GPG Key ID: 924A5F6AF051E87C

@ -52,7 +52,7 @@ deploy_stage:
- 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} node "~/rockfic-staging/.output/server/index.mjs" \&\>/dev/null \& disown \%1
- ssh rockfic@${DEPLOY_SERVER} systemctl reload apache2
- ssh rockfic@${DEPLOY_SERVER} sudo systemctl reload apache2
environment:
name: staging
url: https://next.rockfic.com