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

create or update schema for the db on ansible deployment

Former-commit-id: 1d6b183e033698e06ceff44e08e8d843e7257f35
parent 3a1fd078
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,11 @@
django_manage:
command: "runmodwsgi --setup-only --port=80 --user ippidb --group wheel --server-root=/etc/ippidb-80"
app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
- name: create or update database
become_user: "{{ deploy_user_name }}"
django_manage:
command: "migrate"
app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
# FIXME: this should obviously be removed before switching to prod. env.
- name: restrict access to the web server to specific IPs
lineinfile: dest=/etc/ippidb-80/httpd.conf
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment