Fix problem in trackers get-data #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to PythonAnywhere | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Deploy-Through-SSH: | |
runs-on: ubuntu-latest | |
environment: production | |
concurrency: production | |
steps: | |
- name: Connect via SSH and Deploy new version | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
passphrase: ${{ secrets.SSH_PASSPHRASE }} | |
script_stop: true | |
script: | | |
cd benbb96-website/ | |
workon benbb96 | |
git pull | |
pip install -r requirements/prod.txt | |
python manage.py migrate | |
python manage.py collectstatic --noinput | |
touch /var/www/www_benbb96_com_wsgi.py |