Skip to content

Commit

Permalink
feat: install unicorn inside the venv
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed May 12, 2023
1 parent 52e7c70 commit cc183e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
state: latest # noqa package-latest
virtualenv: "{{ libretime_venv_dir }}"
virtualenv_command: python3 -m venv
virtualenv_site_packages: true

- name: Setup shared
ansible.builtin.import_tasks: shared.yml
Expand Down
2 changes: 1 addition & 1 deletion templates/systemd/libretime-api.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Environment=LIBRETIME_LOG_FILEPATH={{ libretime_log_dir }}/api.log

Type=notify
KillMode=mixed
ExecStart={{ libretime_venv_dir }}/bin/python3 -m gunicorn \
ExecStart={{ libretime_venv_dir }}/bin/gunicorn \
--workers 4 \
--worker-class uvicorn.workers.UvicornWorker \
--log-file - \
Expand Down

0 comments on commit cc183e2

Please sign in to comment.