Skip to content

Commit 13e9111

Browse files
authored
[Refactor] deploy-express.yml 스크립트 수정 (#213)
Refactor: 백엔드 cicd appleboy/ssh-action 액션 사용
1 parent 85e9d80 commit 13e9111

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/deploy-express.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ jobs:
1616
username: ${{ secrets.AWS_EC2_USER }}
1717
key: ${{ secrets.AWS_PRIVATE_KEY }}
1818
port: ${{secrets.SERVER_PORT}}
19-
script-stop: true
2019
script: |
20+
set -e
2121
cd /home/ubuntu/codeit-resources
2222
git pull origin develop
2323
pnpm install
2424
pnpm --filter=api build
2525
pm2 restart codeit-server
26+
27+
# pm2 명령어
28+
# pm2 delete all
29+
# cd /home/ubuntu/codeit-resources/apps/api
30+
# pm2 start pnpm --name "codeit-server" -- start

0 commit comments

Comments
 (0)