pasteque: Missing gunicorn.

This commit is contained in:
Julien Palard 2022-08-19 11:18:07 +02:00
parent dfdcb0c47f
commit 1031870c45
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
1 changed files with 16 additions and 0 deletions

View File

@ -31,6 +31,22 @@
dest: "/etc/nginx/conf.d/{{ domain }}.conf"
notify: reload nginx
- name: Install gunicorn in venv
pip:
name: gunicorn
virtualenv_command: "/usr/bin/python3 -m venv"
virtualenv: "$HOME/.venv/"
become: true
become_user: "{{ owner }}"
- name: Install dependencies in venv
pip:
requirements: "$HOME/pasteque/requirements.txt"
virtualenv_command: "/usr/bin/python3 -m venv"
virtualenv: "$HOME/.venv/"
become: true
become_user: "{{ owner }}"
- name: Configure systemd
copy:
dest: /etc/systemd/system/pasteque.service