Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
e0b4113d
Commit
e0b4113d
authored
May 18, 2017
by
okhin
Browse files
Make the database read-writable by rp2 user
parent
380ff0cd
Pipeline
#1053
failed with stages
in 2 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e0b4113d
...
...
@@ -55,7 +55,7 @@ deploy preprod:
VIRTUALENV
:
/srv/rp2/rp2-env
stage
:
deploy
script
:
-
rsync --exclude 'env' --exclude 'pip-cache' --exclude '.git' -r
uv
./ ${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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment