Commit 785faa1f authored by okhin's avatar okhin 🚴
Browse files

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: ...@@ -45,11 +45,11 @@ static build:
deploy preprod: deploy preprod:
variables: variables:
BASE_PATH: /srv/rp2/src/ BASE_PATH: /srv/rp/rp-rp2
VIRTUALENV: /srv/rp2/rp2-env VIRTUALENV: /srv/rp/env
stage: deploy stage: deploy
script: 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 - source ${VIRTUALENV}/bin/activate
- pip install --upgrade pip - pip install --upgrade pip
- pip install --upgrade -r requirements.txt - pip install --upgrade -r requirements.txt
...@@ -58,7 +58,7 @@ deploy preprod: ...@@ -58,7 +58,7 @@ deploy preprod:
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${BASE_PATH}/project/settings/env.py - echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${BASE_PATH}/project/settings/env.py
- echo "SITE_ID = 2" >> ${BASE_PATH}/project/settings/env.py - echo "SITE_ID = 2" >> ${BASE_PATH}/project/settings/env.py
- ${BASE_PATH}/manage.py migrate - ${BASE_PATH}/manage.py migrate
- chmod g+rw ${BASE_PATH}/db.sqlite3 - chmod g+srw ${BASE_PATH}/db.sqlite3
- touch ${BASE_PATH}/ready - touch ${BASE_PATH}/ready
only: only:
- rp2 - 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