Skip to content

Commit

Permalink
Added collectstatic
Browse files Browse the repository at this point in the history
  • Loading branch information
brutasse committed Sep 23, 2012
1 parent 923fcca commit c9661a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bundle/init.sls
Expand Up @@ -46,6 +46,17 @@ include:
- virtualenv: {{ config['http_host'] }}-venv
- watch:
- file: {{ config['http_host'] }}-requirements
{{ config['http_host'] }}-collectstatic:
cmd.wait:
- name: >
envdir /etc/{{ config['http_host'] }}.d
env/bin/django-admin.py collectstatic --noinput
- cwd: /home/{{ pillar['user'] }}/bundles/{{ config['http_host'] }}
- watch:
- file: {{ config['http_host'] }}-requirements
- require:
- cmd: {{ config['http_host'] }}-requirements
{%- endif %}
{% if config['env'] %}
Expand Down

0 comments on commit c9661a8

Please sign in to comment.