Skip to content
Snippets Groups Projects
Verified Commit bd4d92e1 authored by ynerant's avatar ynerant
Browse files

[helloworld] Fix uWSGI configuration


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 6d418d02
No related branches found
No related tags found
1 merge request!315Hello world!
......@@ -147,8 +147,8 @@
- name: Copy uWSGI app
template:
src: "uwsgi/apps-available/printer.ini.j2"
dest: "/etc/uwsgi/apps-available/printer.ini"
src: "uwsgi/apps-available/django-printer.ini.j2"
dest: "/etc/uwsgi/apps-available/django-printer.ini"
owner: root
group: root
mode: 0644
......@@ -156,8 +156,8 @@
- name: Activate uWSGI app
file:
src: "../apps-available/printer.ini"
dest: "/etc/uwsgi/apps-enabled/printer.ini"
src: "../apps-available/django-printer.ini"
dest: "/etc/uwsgi/apps-enabled/django-printer.ini"
owner: root
group: root
state: link
......@@ -173,8 +173,15 @@
group: www-data
mode: u=rwx,g=rwxs,o=rx
- name: Clone projet to get documentation sources
git:
repo: 'https://gitlab.adm.crans.org/nounous/django-printer.git'
dest: '/tmp/django-printer'
umask: '002'
version: "{{ printer.version }}"
- name: Build HTML documentation
command: "sphinx-build -b dirhtml {{ project_path }}/docs/ /var/www/django-printer-doc/"
command: "sphinx-build -b dirhtml /tmp/django-printer/docs/ /var/www/django-printer-doc/"
become_user: www-data
- name: Indicate module in motd
......
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