We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efa1a34 commit 3789cf2Copy full SHA for 3789cf2
1 file changed
.github/scripts/deploy_deepgit.sh
@@ -1,2 +1,22 @@
1
-echo Hello World
2
-ls -l
+#!/bin/bash
+# This should be run inside GCP compute engine
3
+
4
+# pull deploy branch
5
+cd ~/projects/deepgit
6
+git pull origin deploy
7
8
+# build and deploy the frontend
9
+npm install
10
+rm -rf
11
+npm run build
12
+sudo rm -rf /var/www/deepgit-app/*
13
+sudo cp -rf ~/projects/deepgit
14
15
+# build and deploy the backend
16
+source .venv/bin/activate
17
+cd backend
18
+pip install -r requirements.txt
19
20
+# restart nginx and gunicorn
21
+sudo systemctl restart nginx
22
+sudo systemctl restart gunicorn
0 commit comments