Skip to content

Commit

Permalink
fix ansible
Browse files Browse the repository at this point in the history
  • Loading branch information
theskumar committed Dec 20, 2023
1 parent 6b76f99 commit 2a7a93b
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ pg_hstore: False
pg_db: "{{ project_namespace }}"
pg_user: dev
pg_password: password
{% endraw %}
{%- if cookiecutter.add_asgi.lower() == 'y' %}
# asgi related variables
asgi_user: www-data
asgi_group: www-data
asgi_workers: 2
{% raw %}
asgi_socket: /tmp/django-{{ domain_name }}-asgi.sock
{% endraw %}
asgi_user: www-data
asgi_group: www-data
asgi_workers: 2
{% raw %}asgi_socket: /tmp/django-{{ domain_name }}-asgi.sock{% endraw %}
{% else %}
# uwsgi related variables
uwsgi_user: www-data
Expand All @@ -32,8 +28,7 @@ uwsgi_emperor_pid_file: /run/uwsgi-emperor.pid
{% raw %}
uwsgi_socket: "/tmp/uwsgi-{{ project_namespace }}.sock"
uwsgi_pid_file: "/tmp/uwsgi-{{ project_namespace }}.pid"

{% endraw %}
uwsgi_log_dir: /var/log/uwsgi
uwsgi_log_file: "{{ uwsgi_log_dir }}/{{ project_namespace }}.log"
{% endraw %}
{% endif %}

0 comments on commit 2a7a93b

Please sign in to comment.