Skip to content

Commit

Permalink
Home deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
sheninthjr committed Nov 6, 2023
1 parent 04c97a9 commit 44f19f7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

export PATH=$PATH:/home/ubuntu/.nvm/versions/node/v21.1.0/bin

cd /home/ubuntu/Automatic-Question-Generator
git pull origin master
cd packages/prisma
yarn start:express
4 changes: 2 additions & 2 deletions packages/prisma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"prisma:deploy": "prisma migrate deploy",
"build": "esbuild ./server/index.js --bundle --platform=node --outfile=dist/index.js",
"dev": "tsc -b && node dist/index.js",
"all":"yarn prisma migrate dev && yarn prisma generate && sudo docker-compose up -d && tsc -b && node dist/index.js",
"start": "node dist/index.js",
"all": "yarn prisma migrate dev && yarn prisma generate && sudo docker-compose up -d && tsc -b && node dist/index.js",
"start:express": "sudo docker-compose up -d && yarn prisma migrate dev && yarn prisma generate && pm2 kill && yarn install && yarn build && pm2 start node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
Expand Down

0 comments on commit 44f19f7

Please sign in to comment.