Skip to content

updated allowd hosts #12

updated allowd hosts

updated allowd hosts #12

Workflow file for this run

name: Deploy app
on:
push:
branches:
- main
jobs:
Deploy:
runs-on: self-hosted
steps:
- name: Deploy code
run: |
cd /home/django/project
if [ -d "./Instagenda" ]; then
cd ./Instagenda
git pull
else
git clone https://github.com/HE-Arc/Instagenda.git
cd ./Instagenda
fi
- name: Configure python env for django
run: |
cd /home/django/project/Instagenda/api
pipenv install --deploy
pipenv install django
pipenv install djangorestframework
pipenv run python manage.py migrate
pipenv run python manage.py collectstatic --noinput
sudo systemctl restart gunicorn
- name: Build Vue.js
run: |
cd /home/django/project/Instagenda/frontend
npm install
npm run build