2013-01-30 23:11:34 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
# Update static files in production.
|
|
|
|
|
|
|
|
cd "$(dirname "$0")"/..
|
|
|
|
|
|
|
|
# Redirect output to a log file (most recent run only)
|
|
|
|
exec >update-prod-static.log
|
|
|
|
|
2013-02-16 11:17:23 +01:00
|
|
|
# Compile Handlebars templates
|
|
|
|
./tools/node node_modules/.bin/handlebars zephyr/static/templates/*.handlebars \
|
|
|
|
--output ./zephyr/static/templates/compiled.js \
|
|
|
|
--known if,unless,each,with
|
|
|
|
|
2013-06-12 19:33:53 +02:00
|
|
|
# Collect the files that we're going to serve
|
2013-03-27 18:40:17 +01:00
|
|
|
rm -rf prod-static/source-map
|
|
|
|
mkdir -p prod-static/source-map
|
2013-01-30 23:11:34 +01:00
|
|
|
./manage.py collectstatic --noinput
|
|
|
|
|