Skip to content

Commit 1c3bc12

Browse files
committed
👷 [cicd] : CD 파일 전송 부분 수정
1 parent 7caf640 commit 1c3bc12

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/CD.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ jobs:
3939
key: ${{ secrets.FRONT_HOST_KEY }}
4040
port: ${{ secrets.FRONT_HOST_PORT }}
4141
source: "dist/*"
42-
target: /var/www/html/
43-
rm: 'true'
42+
target: /
4443
#
4544
# - name: Create nginx.conf
4645
# run: touch ./nginx.conf
@@ -63,6 +62,8 @@ jobs:
6362
key: ${{ secrets.FRONT_HOST_KEY }}
6463
port: ${{ secrets.FRONT_HOST_PORT }}
6564
script: |
65+
sudo rm -rf /var/www/html/*
66+
sudo cp -r dist/* /var/www/html/
6667
sudo systemctl restart nginx
6768
# docker rm -f taskflow-front
6869
# docker image rm ${{ secrets.DOCKER_FRONT_REPO }} -f

0 commit comments

Comments
 (0)