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:
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
......@@ -64,7 +64,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