Commit e0b4113d authored by okhin's avatar okhin

Make the database read-writable by rp2 user

parent 380ff0cd
Pipeline #1053 failed with stages
in 2 minutes and 17 seconds
......@@ -55,7 +55,7 @@ deploy preprod:
VIRTUALENV: /srv/rp2/rp2-env
stage: deploy
script:
- rsync --exclude 'env' --exclude 'pip-cache' --exclude '.git' -ruv ./ ${BASE_PATH}
- rsync --exclude 'env' --exclude 'pip-cache' --exclude '.git' -r --chown g+rw ./ ${BASE_PATH}
- source ${VIRTUALENV}/bin/activate
- pip install --upgrade pip
- pip install --upgrade -r requirements.txt
......@@ -63,6 +63,7 @@ deploy preprod:
- echo "DEBUG = True" > ${BASE_PATH}/project/settings/env.py
- echo "SECRET_KEY = '$(pwgen 20 1)'" >> ${BASE_PATH}/project/settings/env.py
- ${BASE_PATH}/manage.py migrate
- chmod g+rw 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