X-Git-Url: https://info9.net/gitweb/?p=wiki.git;a=blobdiff_plain;f=tmarble%2Fposts%2FSetting_Up_MediaGoblin%2Fsrv%2Fmediagoblin%2Fmg.txt;fp=tmarble%2Fposts%2FSetting_Up_MediaGoblin%2Fsrv%2Fmediagoblin%2Fmg.txt;h=93394150afd0ae48ce4108529a0efa38f0a6e578;hp=0000000000000000000000000000000000000000;hb=25f37f45c25c5659d9a3608776e0fa9ca77c74cd;hpb=19a415cc5d45e990f04b5eafac364423cb50fee1 diff --git a/tmarble/posts/Setting_Up_MediaGoblin/srv/mediagoblin/mg.txt b/tmarble/posts/Setting_Up_MediaGoblin/srv/mediagoblin/mg.txt new file mode 100644 index 0000000..9339415 --- /dev/null +++ b/tmarble/posts/Setting_Up_MediaGoblin/srv/mediagoblin/mg.txt @@ -0,0 +1,28 @@ +NOTE the shebang has been disabled here + +#!/srv/mediagoblin/bin/python + +# Written in 2011 by Christopher Allan Webber +# +# To the extent possible under law, the author(s) have dedicated all +# copyright and related and neighboring rights to this software to the +# public domain worldwide. This software is distributed without any +# warranty. +# +# You should have received a copy of the CC0 Public Domain Dedication along +# with this software. If not, see +# . + +from paste.deploy import loadapp +from flup.server.fcgi import WSGIServer + +CONFIG_PATH = '/srv/mediagoblin/paste_local.ini' + + +def launch_fcgi(): + ccengine_wsgi_app = loadapp('config:' + CONFIG_PATH) + WSGIServer(ccengine_wsgi_app).run() + + +if __name__ == '__main__': + launch_fcgi()