
This is a huge change! This means several things. - From the python point of view, launching the application is a heck of a lot cleaner. You just need to pass in the config file path to MediaGoblinApp's __init__() and whether or not this funtion should setup celery and you're good. - There are now two separate config files, separating the server setup from the application setup. - server.ini: the paste deploy config file, which configures the applications and server setup but *NOT* the mediagoblin application itself. - mediagoblin.ini: where you configure mediagoblin (and possibly celery) - Launching the application is now different. Instead of: ./bin/paster serve mediagoblin.ini --reload We launch like: ./bin/paster serve server.ini --reload
35 lines
800 B
INI
35 lines
800 B
INI
[DEFAULT]
|
|
debug = true
|
|
|
|
[composite:main]
|
|
use = egg:Paste#urlmap
|
|
/ = mediagoblin
|
|
/mgoblin_media/ = publicstore_serve
|
|
/mgoblin_static/ = mediagoblin_static
|
|
|
|
[app:mediagoblin]
|
|
use = egg:mediagoblin#app
|
|
filter-with = beaker
|
|
config = %(here)s/mediagoblin.ini
|
|
|
|
[app:publicstore_serve]
|
|
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/
|
|
|
|
[filter:beaker]
|
|
use = egg:Beaker#beaker_session
|
|
cache_dir = %(here)s/user_dev/beaker
|
|
beaker.session.key = mediagoblin
|
|
# beaker.session.secret = somesupersecret
|
|
beaker.session.data_dir = %(here)s/user_dev/beaker/sessions/data
|
|
beaker.session.lock_dir = %(here)s/user_dev/beaker/sessions/lock
|
|
|
|
[server:main]
|
|
use = egg:Paste#http
|
|
host = 127.0.0.1
|
|
port = 6543
|