1 | !/usr/bin/env python
|
---|
2 | # -*- coding: utf-8 -*-
|
---|
3 |
|
---|
4 | #hackish, oh hackish! But working! Just hardcoded the values that paster was putting in for now. This definitely needs cleanup :)
|
---|
5 |
|
---|
6 | import web
|
---|
7 | from beaker.middleware import SessionMiddleware
|
---|
8 | import sys
|
---|
9 | sys.path.append('/home/spaetz/src/mediagoblin')
|
---|
10 | import mediagoblin
|
---|
11 | from mediagoblin.app import paste_app_factory
|
---|
12 |
|
---|
13 | # Configure the SessionMiddleware
|
---|
14 | session_opts = {
|
---|
15 | 'cache_dir':'/home/spaetz/src/mediagoblin/user_dev/beaker',
|
---|
16 | 'session.key':'mediagoblin',
|
---|
17 | 'session.data_dir':'/home/spaetz/src/mediagoblin/user_dev/beaker/sessions/data',
|
---|
18 | 'session.lock_dir':'/home/spaetz/src/mediagoblin/user_dev/beaker/sessions/lock',
|
---|
19 | }
|
---|
20 |
|
---|
21 | app = paste_app_factory({'debug': 'true', '__file__': '/home/spaetz/src/mediagoblin/mediagoblin.ini', 'here': '/home/spaetz/src/mediagoblin'}, email_sender_address='"notice@mediagoblin.example.org"', publicstore_base_url='/public/', email_debug_mode='true', direct_remote_path='/mgoblin_static/', publicstore_base_dir='/home/spaetz/src/mediagoblin/user_dev/media/public', queuestore_base_dir= '/home/spaetz/src/mediagoblin/user_dev/media/queue')
|
---|
22 | app = SessionMiddleware(app, session_opts)
|
---|
23 |
|
---|
24 | if __name__ == "__main__":
|
---|
25 | from flup.server.fcgi import WSGIServer
|
---|
26 | WSGIServer(app).run()
|
---|