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

set BABEL_LIBDIR also during deployment for django-manage tasks

parent f832b2c7
No related branches found
No related tags found
No related merge requests found
Pipeline #9249 passed
......@@ -124,11 +124,15 @@
command: "collectstatic"
app_path: "/home/{{ deploy_user_name }}/ippidb-web/ippisite"
settings: "ippisite.{{ ansible_hostname }}_settings"
environment:
BABEL_LIBDIR: '/usr/lib64/openbabel/'
- name: create mod_wsgi configuration
django_manage:
command: "runmodwsgi --setup-only --port=80 --user ippidb --group wheel --server-root=/etc/ippidb-80"
app_path: "/home/{{ deploy_user_name }}/ippidb-web/ippisite"
settings: "ippisite.{{ ansible_hostname }}_settings"
environment:
BABEL_LIBDIR: '/usr/lib64/openbabel/'
- name: add line in generated WSGI handler script to set DJANGO_SETTINGS_MODULE and BABEL_LIBDIR for openbabel formats
blockinfile:
path: /etc/ippidb-80/handler.wsgi
......@@ -145,6 +149,8 @@
command: "migrate"
app_path: "/home/{{ deploy_user_name }}/ippidb-web/ippisite"
settings: "ippisite.{{ ansible_hostname }}_settings"
environment:
BABEL_LIBDIR: '/usr/lib64/openbabel/'
# FIXME: this should obviously be removed before switching to prod. env.
- name: install passlib for htpasswd in ansible
yum: name=python-passlib state=installed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment