From 03deb22cc793f1a3f24ebc18f0b2a9876404511e Mon Sep 17 00:00:00 2001 From: sheninthjr Date: Sat, 4 Nov 2023 17:32:11 +0530 Subject: [PATCH] Deploy.sh --- .gitignore | 1 - packages/prisma/deploy.sh | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 packages/prisma/deploy.sh diff --git a/.gitignore b/.gitignore index f16137d..b7164a4 100644 --- a/.gitignore +++ b/.gitignore @@ -34,5 +34,4 @@ yarn-error.log* # vercel .vercel -deploy.sh sheninth-qpg.pem \ No newline at end of file diff --git a/packages/prisma/deploy.sh b/packages/prisma/deploy.sh new file mode 100644 index 0000000..e23c464 --- /dev/null +++ b/packages/prisma/deploy.sh @@ -0,0 +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" \ No newline at end of file