Skip to content

Commit d4c08eb

Browse files
authored
chore: Create deploy.sh
1 parent e976163 commit d4c08eb

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/deploy.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
# 작업 디렉토리 경로
4+
DIR="/home/root/app/autodocs"
5+
6+
# 디렉토리 확인
7+
if [ -d "$DIR" ]; then
8+
echo "$DIR 디렉토리가 존재합니다. 최신 버전으로 업데이트 중..."
9+
cd "$DIR"
10+
git pull
11+
else
12+
echo "$DIR 디렉토리가 존재하지 않습니다. 클론 중..."
13+
git clone https://github.com/boostcampwm-2024/web15-OctoDocs.git "$DIR"
14+
cd "$DIR"
15+
fi
16+
17+
# backend 디렉토리로 이동 및 명령어 실행
18+
cd backend
19+
echo "의존성 설치 중..."
20+
npm install
21+
22+
echo "애플리케이션 시작 중..."
23+
npm start

0 commit comments

Comments
 (0)