From 25e01799bbd461f8ceb0f17c7c6217ca16c4d01e Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 24 May 2012 10:56:26 -0400 Subject: [PATCH] Add a script to doing the collectstatic run during apt configuration --- collect_static_resources | 3 +++ rakefile | 3 +++ 2 files changed, 6 insertions(+) create mode 100755 collect_static_resources diff --git a/collect_static_resources b/collect_static_resources new file mode 100755 index 0000000000..6d2c68e4d1 --- /dev/null +++ b/collect_static_resources @@ -0,0 +1,3 @@ +#! /bin/bash + +cd $(basedir $0) && django-admin.py collectstatic --noinput --settings=envs.aws --pythonpath=. diff --git a/rakefile b/rakefile index f630f74eef..f4ca821ab1 100644 --- a/rakefile +++ b/rakefile @@ -83,6 +83,9 @@ task :package do rm -f #{LINK_PATH} ln -s #{INSTALL_DIR_PATH} #{LINK_PATH} chown makeitso:makeitso #{LINK_PATH} + + /opt/wwc/mitx/collect_static_resources + service gunicorn start POSTINSTALL postinstall.close()