File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed
Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 4343 # 코드 체크아웃
4444 - name : Checkout code
4545 uses : actions/checkout@v3
46+
47+ # .env 파일 생성 후 붙여넣기
48+ - name : Create .env file
49+ run : |
50+ echo "${{secrets.DEVELOPMENT_ENV}}" > ./.env
51+
4652 # 배포용 쉘 스크립트 파일 전송
4753 - name : Copy deploy.sh to remote server
4854 uses : appleboy/scp-action@master
5157 username : ${{ secrets.REMOTE_USER }}
5258 key : ${{ secrets.REMOTE_PRIVATE_KEY }}
5359 source : ./deploy.sh
54- target : /home/root/deploy.sh
60+ target : /home/root
61+ # 쉘 스크립트 실행
62+ - name : Run command on remote server
63+ 64+ with :
65+ host : ${{ secrets.REMOTE_DEV_IP }}
66+ username : ${{ secrets.REMOTE_USER }}
67+ key : ${{ secrets.PRIVATE_KEY }}
68+ script : |
69+ sh /home/root/deploy.sh
Original file line number Diff line number Diff line change 3131
3232# 의존성 설치 및 애플리케이션 시작
3333echo " 의존성 설치 중..."
34- npm install
34+ yarn install
3535
3636echo " 애플리케이션 시작 중..."
37- nohup npm start &
37+ nohup yarn start &
You can’t perform that action at this time.
0 commit comments