aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-11 00:34:08 -0500
committerBobby <[email protected]>2022-11-11 00:34:08 -0500
commit488fbcdd49d38f58ceacf17efe64a80cbb2d0624 (patch)
tree502e0d25f8e738a61936fa02b9912ba763f367ac /.github
parent427f0a3e88ae834f9f07c823fdf13ce527137547 (diff)
downloadthatcomputerscientist-488fbcdd49d38f58ceacf17efe64a80cbb2d0624.tar.xz
thatcomputerscientist-488fbcdd49d38f58ceacf17efe64a80cbb2d0624.zip
Running Deployment Script on Server
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0607be16..0fb40653 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -7,4 +7,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
-
+ - name: Switch to thatcomputerscientist/thatcomputerscientist/thatcomputerscientist folder
+ run: cd thatcomputerscientist/thatcomputerscientist/thatcomputerscientist
+ - name: Install Requirements
+ run: pip3 install -r requirements.txt
+ - name: Run Django Migrations
+ run: python3 manage.py migrate
+ - name: Run Django Makemigrations
+ run: python3 manage.py makemigrations
+ - name: Run Django Collectstatic
+ run: python3 manage.py collectstatic --noinput
+ - name: Kill Gunicorn
+ run: pkill gunicorn
+ - name: Start Gunicorn
+ run: gunicorn --bind :8000 --workers 3 thatcomputerscientist.wsgi --daemon