Skip to content

Commit

Permalink
Merge pull request #11 from TEAM-ITERVIEW/#2
Browse files Browse the repository at this point in the history
[feat] CI/CD 구축
  • Loading branch information
cha2y0ung authored Mar 22, 2024
2 parents fc70f12 + 7460261 commit 2448882
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions scripts/after-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ REPOSITORY=/home/ubuntu/build

cd $REPOSITORY

/usr/bin/yarn
/usr/bin/yarn db:pull
/usr/bin/yarn generate
/usr/bin/pm2 start dist
#? dependencies 설치
echo 'Installing Dependencies ...'
sudo yarn
sudo /usr/bin/yarn db:pull

#? Prisma 사전 작업
echo 'Generating Prisma ...'
yarn generate

#? PM2로 서버 실행
echo 'Starting server with PM2 ...'
sudo pm2 start dist

0 comments on commit 2448882

Please sign in to comment.