Skip to content

Poll for live updates in shared view (#109) (#110) #126

Poll for live updates in shared view (#109) (#110)

Poll for live updates in shared view (#109) (#110) #126

Workflow file for this run

name: Deploy to poe.ma
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy to server
uses: appleboy/ssh-action@v1
with:
host: poe.ma
username: root
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
cp /opt/doingit/.env /tmp/doingit-env-backup
rsync --delete --exclude='.env' --exclude='venv' -a /dev/stdin /opt/doingit/ < /dev/null || true
cd /opt/doingit
cp /tmp/doingit-env-backup .env
- name: Copy files via SCP
uses: appleboy/scp-action@v0.1.7
with:
host: poe.ma
username: root
key: ${{ secrets.DEPLOY_SSH_KEY }}
source: "app.py,index.html,requirements.txt,static/"
target: /opt/doingit/
- name: Install deps and restart
uses: appleboy/ssh-action@v1
with:
host: poe.ma
username: root
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
cd /opt/doingit
chown -R www-data:www-data /opt/doingit
/opt/doingit/venv/bin/pip install -q -r requirements.txt
systemctl restart doingit