From 488fbcdd49d38f58ceacf17efe64a80cbb2d0624 Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 11 Nov 2022 00:34:08 -0500 Subject: Running Deployment Script on Server --- .github/workflows/main.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3