Skip to content

Commit

Permalink
🐎 ci: 配置更改
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghui-su committed Jun 18, 2024
1 parent 17e2950 commit 7fff5d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,7 @@ jobs:
TARGET: "/www/wwwroot"

- name: 将代码部署到服务器
env:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
CLERK_SECRET_KEY: ${{ secrets.CLERK_SECRET_KEY }}
NEXT_PUBLIC_CLERK_SIGN_IN_URL: ${{ secrets.NEXT_PUBLIC_CLERK_SIGN_IN_URL }}
NEXT_PUBLIC_CLERK_SIGN_UP_URL: ${{ secrets.NEXT_PUBLIC_CLERK_SIGN_UP_URL }}
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL: ${{ secrets.NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL }}
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL: ${{ secrets.NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL }}
UPLOADTHING_SECRET: ${{ secrets.UPLOADTHING_SECRET }}
UPLOADTHING_APP_ID: ${{ secrets.UPLOADTHING_APP_ID }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: |
ssh -o StrictHostKeyChecking=no \
ssh \
root@${{ secrets.REMOTE_HOST }} \
"cd /www/wwwroot/su-discord && git pull origin master && npm install && pm2 reload ecosystem.config.js --env production"
2 changes: 1 addition & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
args: "start",
instances: "max",
autorestart: true,
watch: false,
watch: true,
max_memory_restart: "1G",
env: {
NODE_ENV: "production",
Expand Down

0 comments on commit 7fff5d8

Please sign in to comment.