Skip to content

Bug reduce redundant loading (#166) #13

Bug reduce redundant loading (#166)

Bug reduce redundant loading (#166) #13

Workflow file for this run

name: Deploy to Ubuntu Server
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: SSH to Remote Server
uses: appleboy/ssh-action@master
with:
host: 52.9.199.73
username: ubuntu
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd hkn-portal
git pull
source venv/bin/activate
python manage.py makemigrations
python manage.py migrate
cd frontend
npm run build
cd ..
python manage.py collectstatic --noinput
sudo service apache2 restart