Skip to content

Commit

Permalink
Docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
sheninthjr committed Nov 4, 2023
1 parent 03deb22 commit 9b21cb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"start:express": "cd packages/prisma && node dist/index.js",
"start:express": "cd packages/prisma && sudo docker-compose up -d && node dist/index.js",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/prisma/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export PATH=$PATH:/home/ubuntu/.nvm/versions/node/v20.5.1/bin

cd /home/ubuntu/Automatic-Question-Generator
git pull origin master
yarn build
pm2 stop express
pm2 start npm --name "express" -- run "start:express"
git pull origin master
yarn build
pm2 stop express
pm2 start npm --name "express" -- run "start:express"

0 comments on commit 9b21cb9

Please sign in to comment.