#!/usr/bin/env bash
export PROJECT_ROOT=/web/ebook
source ${PROJECT_ROOT}/.env/bin/activate
cd ${PROJECT_ROOT}
source ~/environment
cat ~/environment
${PROJECT_ROOT}/.env/bin/uwsgi --ini ${PROJECT_ROOT}/uwsgi.ini
cat: /root/environment: Permission denied
[uWSGI] getting INI configuration from /my_app/uwsgi.ini
deploy:
stage: deploy
script:
...
## Stop application
- "supervisorctl stop myapp"
- "python3.6 -m venv .env"
- "source .env/bin/activate"
- "source ~/environment"
- "cat ~/environment"
- "pip3 install -r requirements.txt"
- "python manage.py collectstatic --noinput"
- "python manage.py migrate --no-input"
## Start application
- "supervisorctl start myapp"
only:
- master
tags:
- dev