Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iPPIDB
ippidb-web
Commits
2729e2ac
Commit
2729e2ac
authored
7 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
modify ansible script to set DJANGO settings at the top of file
Former-commit-id: fe649cab10820a40938455a39c8f2e8a8833182b
parent
1d45acae
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/deploy.yaml
+4
-1
4 additions, 1 deletion
ansible/deploy.yaml
with
4 additions
and
1 deletion
ansible/deploy.yaml
+
4
−
1
View file @
2729e2ac
...
@@ -80,8 +80,11 @@
...
@@ -80,8 +80,11 @@
-
name
:
add line in generated WSGI handler script to set DJANGO_SETTINGS_MODULE
-
name
:
add line in generated WSGI handler script to set DJANGO_SETTINGS_MODULE
blockinfile
:
blockinfile
:
path
:
/etc/ippidb-80/handler.wsgi
path
:
/etc/ippidb-80/handler.wsgi
insert before
:
BOF
content
:
|
content
:
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'ippisite.{{ ansible_hostname }}_settings'
# added by ansible deployment script to use the right django settings file
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'ippisite.hub16_settings'
-
name
:
create or update database
-
name
:
create or update database
become_user
:
"
{{
deploy_user_name
}}"
become_user
:
"
{{
deploy_user_name
}}"
django_manage
:
django_manage
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment