Skip to content

Commit 53afc0f

Browse files
authored
Merge pull request #38 from ije90s/dev
마이그레이션 추가
2 parents a3db141 + a18842b commit 53afc0f

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

scripts/after_install.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@ set -e
33

44
cd /home/ubuntu/app
55

6-
npm ci
6+
npm ci
7+
8+
echo "--- 현재 위치 확인 ---"
9+
pwd
10+
11+
echo "--- 마이그레이션 파일 존재 확인 ---"
12+
ls -l dist/src/migrations || echo "파일 없음!"
13+
14+
echo "--- 마이그레이션 실행 ---"
15+
npm run migration:run

scripts/start.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ echo "--------------- 배포 시작 -----------------"
55
cd /home/ubuntu/app
66

77
pm2 startOrReload ecosystem.config.js --env production
8-
pm2 save
9-
108
echo "--------------- 배포 끝 -----------------"

0 commit comments

Comments
 (0)