Commit c59411ad authored by Okhin's avatar Okhin

Updating the gitlab CI paths

parent 19ced1c8
Pipeline #2460 passed with stages
in 3 minutes and 58 seconds
...@@ -51,11 +51,11 @@ static build: ...@@ -51,11 +51,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
...@@ -64,7 +64,7 @@ deploy preprod: ...@@ -64,7 +64,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