From 9963040abc7dcfdfed4f90c2f2caafc7a27723a6 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Wed, 10 Sep 2014 10:43:55 -0300 Subject: [PATCH] Puppet: collectstatic --- .gitignore | 1 + puppet/manifests/site.pp | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index 389824f..cdc505e 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ fotos *.db db.* media/ +static # Ignoring IDE's files .idea/ diff --git a/puppet/manifests/site.pp b/puppet/manifests/site.pp index b358ab3..2f8eb77 100644 --- a/puppet/manifests/site.pp +++ b/puppet/manifests/site.pp @@ -83,6 +83,16 @@ file { "${sigi_venv_dir}/lib/python2.7/site-packages/reporting": target => "${sigi_venv_dir}/src/geraldo/reporting", } +########################################################################### +# DJANGO + +exec { 'collectstatic': + command => "${sigi_venv_dir}/bin/python manage.py collectstatic --noinput", + cwd => $sigi_dir, +} + +# TODO local_settings.py ... + ########################################################################### # NGINX