Skip to content

chore: configure deployment settings #2

chore: configure deployment settings

chore: configure deployment settings #2

Workflow file for this run

name: Deploy to PythonAnywhere
on:
push:
branches:
- develop
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Copy files via SCP
uses: appleboy/[email protected]
with:
host: ssh.pythonanywhere.com
username: eehnow
key: ${{ secrets.PYTHONANYWHERE_SSH_KEY }}
source: "."
target: "/home/eehnow/econet"
rm: true
- name: SSH and run deploy commands
uses: appleboy/[email protected]
with:
host: ssh.pythonanywhere.com
username: eehnow
key: ${{ secrets.PYTHONANYWHERE_SSH_KEY }}
script: |
source /home/eehnow/econet/bin/activate
cd /home/eehnow/econet
git pull origin develop
pip install -r requirements.txt
python manage.py migrate
python manage.py collectstatic --noinput
touch /var/www/eehnow_pythonanywhere_com_wsgi.py