Fix our media building setup.

Review Request #3037 — Created April 3, 2012 and submitted


Review Board


Fix our media building setup.

Our media building worked okay with an existing development tree
(until recently -- will get to that in a second), but didn't work from a
fresh clone. Unfortunately, that broke our releases, as our release
script creates a fresh clone and builds from that.

The reason is that our media building would run ./ collectstatic,
which required a file. That's dicey no matter what,
since we need certain settings to do this properly.

There's now a contrib/internal/ script, which sets us up
to use a specific file with the right settings and
paths. It can then safely build the media. Our script now calls
into this instead of directly running collectstatic.

Now, this basically works, except for the part where none of it does.
Django-Pipeline with Django 1.4 final has some problem with static
directories registered in STATICFILES_DIRS with prefixes ("rb",
"djblets", etc.). This is issue #95 on their bug tracker, and they have
a branch fixing the problem. As soon as that's released, we'll be able
to update to it and release 1.7 beta.
Tested with a fresh deployment. Also upgraded this server, which is
working (mostly -- there's a new Pipeline feature that breaks JavaScript,
so we're running in DEBUG mode to remove that).
  1. Ship It!
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (3962049)