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