Skip to content

Commit

Permalink
Merge pull request #14 from TEAM-ITERVIEW/#2
Browse files Browse the repository at this point in the history
  • Loading branch information
cha2y0ung authored Mar 22, 2024
2 parents 377d2e4 + 2fdae9e commit b3d611f
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions scripts/after-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,8 @@ REPOSITORY=/home/ubuntu/build

cd $REPOSITORY

#? dependencies 설치
echo 'Installing Dependencies ...'
yarn
/usr/bin/yarn db:pull

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

#? PM2로 서버 실행
echo 'Starting server with PM2 ...'
pm2 start dist
sudo -S /usr/bin/yarn
sudo -S /usr/bin/yarn db:pull
sudo -S /usr/bin/yarn generate
sudo -S /usr/bin/pm2 start dist

0 comments on commit b3d611f

Please sign in to comment.