Commit 0f29c429 by Feanil Patel

Collect static and compress them.

parent 1a4427bc
...@@ -58,9 +58,13 @@ ...@@ -58,9 +58,13 @@
- name: run collectstatic - name: run collectstatic
shell: > shell: >
chdir={{ ecommerce_code_dir }} chdir={{ ecommerce_code_dir }}
{{ ecommerce_home }}/venvs/{{ ecommerce_service_name }}/bin/python manage.py collectstatic --noinput {{ ecommerce_home }}/venvs/{{ ecommerce_service_name }}/bin/python {{ ecommerce_manage }} {{ item }}
sudo_user: "{{ ecommerce_user }}" sudo_user: "{{ ecommerce_user }}"
environment: "{{ ecommerce_environment }}" environment: "{{ ecommerce_environment }}"
with_items:
- "collectstatic --noinput"
- "compress"
- name: write out the supervisor wrapper - name: write out the supervisor wrapper
template: > template: >
......
Markdown is supported
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