aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-11 01:02:25 -0500
committerBobby <[email protected]>2022-11-11 01:02:25 -0500
commitcb47fcb1b7d29a7b4475d7b13a0975d5307ecf94 (patch)
tree0ea1a9633e1839499d7b8bb204b9d04cbd50165a
parentb45d5f8f7aa356c0bb0b6a543b0a59ec21dfdb2c (diff)
downloadthatcomputerscientist-cb47fcb1b7d29a7b4475d7b13a0975d5307ecf94.tar.xz
thatcomputerscientist-cb47fcb1b7d29a7b4475d7b13a0975d5307ecf94.zip
Running Deployment Script on Server
-rw-r--r--.github/workflows/main.yml16
1 files changed, 1 insertions, 15 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 217968c0..f07aa1ac 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -2,20 +2,6 @@ name: Deploy
on: [push]
jobs:
deploy:
- name: Deploy App
runs-on: "self-hosted"
steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Switch to thatcomputerscientist folder
- run: cd /home/ubuntu/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: Start Gunicorn
- run: python3 manage.py runserver 8080 --noreload
+ - run: /home/ubuntu/deploy.sh \ No newline at end of file