Skip to content
Snippets Groups Projects
Commit dde6fa1d authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

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
...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment