Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ippidb-web
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
dde6fa1d
Commit
dde6fa1d
authored
6 years ago
by
Hervé MENAGER
Browse files
Options
Downloads
Patches
Plain Diff
set BABEL_LIBDIR for openbabel formats during deployment
parent
e56f9166
No related branches found
No related tags found
No related merge requests found
Pipeline
#9225
failed
6 years ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/deploy.yaml
+3
-1
3 additions, 1 deletion
ansible/deploy.yaml
with
3 additions
and
1 deletion
ansible/deploy.yaml
+
3
−
1
View file @
dde6fa1d
...
@@ -129,14 +129,16 @@
...
@@ -129,14 +129,16 @@
command
:
"
runmodwsgi
--setup-only
--port=80
--user
ippidb
--group
wheel
--server-root=/etc/ippidb-80"
command
:
"
runmodwsgi
--setup-only
--port=80
--user
ippidb
--group
wheel
--server-root=/etc/ippidb-80"
app_path
:
"
/home/{{
deploy_user_name
}}/ippidb-web/ippisite"
app_path
:
"
/home/{{
deploy_user_name
}}/ippidb-web/ippisite"
settings
:
"
ippisite.{{
ansible_hostname
}}_settings"
settings
:
"
ippisite.{{
ansible_hostname
}}_settings"
-
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
and BABEL_LIBDIR for openbabel formats
blockinfile
:
blockinfile
:
path
:
/etc/ippidb-80/handler.wsgi
path
:
/etc/ippidb-80/handler.wsgi
insertbefore
:
BOF
insertbefore
:
BOF
content
:
|
content
:
|
# added by ansible deployment script to use the right django settings file
# added by ansible deployment script to use the right django settings file
# and set correctly the openbabel formats directory
import os
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'ippisite.hub16_settings'
os.environ['DJANGO_SETTINGS_MODULE'] = 'ippisite.hub16_settings'
os.environ['BABEL_LIBDIR'] = '/usr/lib64/openbabel/'
-
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%
Loading
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