fix: http.ts 요청 경로 https로 수정 #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Frontend To EC2 | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: SSH(원격 접속)로 EC2에 접속하기 | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.EC2_HOST }} | |
username: ${{ secrets.EC2_USERNAME }} | |
key: ${{ secrets.EC2_PRIVATE_KEY }} | |
script_stop: true | |
script: | | |
cd /home/ubuntu/la-front-end | |
git pull origin dev | |
rm -rf build | |
npm install | |
npm run build | |
sudo fuser -k -n tcp 3000 || true | |
npx serve -s build -l 3000 > ./front_output.log 2>&1 & |