]> info9.net Git - wiki.git/blob - tmarble/posts/Setting_Up_MediaGoblin/srv/mediagoblin/mg.txt
Copy over old blog
[wiki.git] / tmarble / posts / Setting_Up_MediaGoblin / srv / mediagoblin / mg.txt
1 NOTE the shebang has been disabled here
2
3 #!/srv/mediagoblin/bin/python
4
5 # Written in 2011 by Christopher Allan Webber
6 #
7 # To the extent possible under law, the author(s) have dedicated all
8 # copyright and related and neighboring rights to this software to the
9 # public domain worldwide. This software is distributed without any
10 # warranty.
11 #
12 # You should have received a copy of the CC0 Public Domain Dedication along
13 # with this software. If not, see
14 # <http://creativecommons.org/publicdomain/zero/1.0/>.
15
16 from paste.deploy import loadapp
17 from flup.server.fcgi import WSGIServer
18
19 CONFIG_PATH = '/srv/mediagoblin/paste_local.ini'
20
21
22 def launch_fcgi():
23     ccengine_wsgi_app = loadapp('config:' + CONFIG_PATH)
24     WSGIServer(ccengine_wsgi_app).run()
25
26
27 if __name__ == '__main__':
28     launch_fcgi()