diff options
| author | Bobby <[email protected]> | 2023-05-15 09:40:58 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-15 09:40:58 -0400 |
| commit | 4ee68386dfb9f529bd2e5accce9ad313e8c64409 (patch) | |
| tree | 90edb8e76f81e1a7035a4c37d444c219d2b9fc87 /.github/workflows | |
| parent | 77cd53091f0cf99de105098c0664a2efc13f4e44 (diff) | |
| download | thatcomputerscientist-4ee68386dfb9f529bd2e5accce9ad313e8c64409.tar.xz thatcomputerscientist-4ee68386dfb9f529bd2e5accce9ad313e8c64409.zip | |
Revert back workflow script
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/main.yml | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fa73ab00..b9e73c52 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,25 +13,4 @@ jobs: username: ${{ secrets.USERNAME }} key: ${{ secrets.KEY_ED25519 }} port: ${{ secrets.PORT }} - script: | - cd /home/ubuntu/thatcomputerscientist/ - git pull origin main --recurse-submodules - rm -rf .env - cp /home/ubuntu/.env . - pip3 install -r requirements.txt - python3 manage.py makemigrations - python3 manage.py migrate - python3 manage.py collectstatic --noinput - kill $(ps aux | grep 'daphne -b 0.0.0.0 -p 8000 thatcomputerscientist.asgi:application' | grep -v grep | awk '{print $2}') - nohup daphne -b 0.0.0.0 -p 8000 thatcomputerscientist.asgi:application > /dev/null 2>&1 & - echo "Deployed Successfully" - echo "Taking Screenshot" - echo "Sleeping..." - sleep 5 - echo Curl Running... - curl -k -L --output siteshot.png http://localhost:8000/ignis/screenshot - rm siteshot.png - echo "Screenshot Saved..." - ls thatcomputerscientist/ - echo "Done" -
\ No newline at end of file + script: sh /home/ubuntu/deploy.sh
\ No newline at end of file |
