Add a script to doing the collectstatic run during apt configuration

This commit is contained in:
Calen Pennington
2012-05-24 10:56:26 -04:00
parent 1e9e8847d3
commit 25e01799bb
2 changed files with 6 additions and 0 deletions

3
collect_static_resources Executable file
View File

@@ -0,0 +1,3 @@
#! /bin/bash
cd $(basedir $0) && django-admin.py collectstatic --noinput --settings=envs.aws --pythonpath=.

View File

@@ -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()