Skip to content

Commit a4fa353

Browse files
authored
Merge pull request #17 from ttakkeun/ci/15
[Chore] Nginx 상태 점검 추가
2 parents c014e33 + 3ebbcc2 commit a4fa353

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
packages:
2+
yum:
3+
nginx: []
4+
5+
commands:
6+
start_nginx:
7+
command: "sudo systemctl start nginx"
8+
enable_nginx:
9+
command: "sudo systemctl enable nginx"

.github/workflows/dev_deploy.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,23 @@ jobs:
5353
# Github Action을 통해 깃허브가 자체적으로 리눅스 가상 환경을 만들어서
5454
# 배포에 필요한 빌드 과정을 진행하는 과정
5555

56+
- name: List deploy directory contents
57+
run: |
58+
echo "Contents of deploy directory:"
59+
ls -R deploy
60+
shell: bash
61+
62+
- name: Check nginx.conf existence
63+
run: |
64+
if [ -f deploy/.platform/nginx.conf ]; then
65+
echo "nginx.conf found"
66+
else
67+
echo "nginx.conf not found"
68+
exit 1
69+
fi
70+
shell: bash
71+
# nginx 상태 점검용 코드 추가
72+
5673
- name: Beanstalk Deploy
5774
uses: einaregilsson/beanstalk-deploy@v21
5875
with:

0 commit comments

Comments
 (0)