Add the staticdirector stuff to the mediagoblin wsgi app.

This commit is contained in:
Christopher Allan Webber
2011-04-17 16:30:51 -05:00
parent dae6add99e
commit 582c4d5fb2
2 changed files with 27 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ debug = true
use = egg:Paste#urlmap
/ = mediagoblin
/mgoblin_media/ = publicstore_serve
/mgoblin_static/ = mediagoblin_static
[app:mediagoblin]
use = egg:mediagoblin#app
@@ -12,6 +13,7 @@ filter-with = beaker
queuestore_base_dir = %(here)s/user_dev/media/queue
publicstore_base_dir = %(here)s/user_dev/media/public
publicstore_base_url = /mgoblin_media/
direct_remote_path = /mgoblin_static/
## Uncomment this to put some user-overriding templates here
#local_templates = %(here)s/user_dev/templates/
@@ -19,6 +21,10 @@ publicstore_base_url = /mgoblin_media/
use = egg:Paste#static
document_root = %(here)s/user_dev/media/public
[app:mediagoblin_static]
use = egg:Paste#static
document_root = %(here)s/mediagoblin/static/
[server:main]
use = egg:Paste#http
host = 127.0.0.1