-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
gachon sw academy
authored and
gachon sw academy
committed
Dec 13, 2023
1 parent
84b8337
commit fc5ccec
Showing
8 changed files
with
78 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#!/bin/bash | ||
# 디렉토리로 이동 | ||
cd /home/ubuntu/deploy | ||
# #!/bin/bash | ||
# # 디렉토리로 이동 | ||
# cd /home/ubuntu/deploy | ||
|
||
# 종속성 설치 | ||
npm install | ||
# # 종속성 설치 | ||
# npm install | ||
|
||
# 리액트 애플리케이션 빌드 | ||
npm run build | ||
# # 리액트 애플리케이션 빌드 | ||
# npm run build | ||
|
||
# 빌드된 파일들을 웹 루트 디렉토리로 이동 | ||
rsync -av --delete /home/ubuntu/deploy/build/ /var/www/html/ | ||
# # 빌드된 파일들을 웹 루트 디렉토리로 이동 | ||
# rsync -av --delete /home/ubuntu/deploy/build/ /var/www/html/ | ||
|
||
# PM2와 Nginx 재시작 | ||
sudo npx pm2 reload all | ||
sudo service nginx restart | ||
# # PM2와 Nginx 재시작 | ||
# sudo npx pm2 reload all | ||
# sudo service nginx restart |
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
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
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
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
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
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
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