Commit 785faa1f authored by okhin's avatar okhin 🚴

Merge branch '7-gestion-des-droits-utilisateur-code-interface' into 'rp2'

Updating the gitlab CI paths

Closes #7

See merge request !8
parents 974d47c5 c59411ad
Pipeline #2461 failed with stages
in 3 minutes and 22 seconds
......@@ -45,11 +45,11 @@ static build:
deploy preprod:
variables:
BASE_PATH: /srv/rp2/src/
VIRTUALENV: /srv/rp2/rp2-env
BASE_PATH: /srv/rp/rp-rp2
VIRTUALENV: /srv/rp/env
stage: deploy
script:
- rsync --exclude 'env' --exclude 'pip-cache' --exclude '.git' -r --chown g+rw ./ ${BASE_PATH}
- rsync --exclude 'env' --exclude 'pip-cache' --exclude '.git' -r --chown rp:www-data --chmod g+srw ./ ${BASE_PATH}
- source ${VIRTUALENV}/bin/activate
- pip install --upgrade pip
- pip install --upgrade -r requirements.txt
......@@ -58,7 +58,7 @@ deploy preprod:
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${BASE_PATH}/project/settings/env.py
- echo "SITE_ID = 2" >> ${BASE_PATH}/project/settings/env.py
- ${BASE_PATH}/manage.py migrate
- chmod g+rw ${BASE_PATH}/db.sqlite3
- chmod g+srw ${BASE_PATH}/db.sqlite3
- touch ${BASE_PATH}/ready
only:
- rp2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment