]> info9.net Git - wiki.git/blobdiff - tmarble/posts/Setting_Up_MediaGoblin/srv/mediagoblin/mg.txt
Copy over old blog
[wiki.git] / tmarble / posts / Setting_Up_MediaGoblin / srv / mediagoblin / mg.txt
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 (file)
index 0000000..9339415
--- /dev/null
@@ -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
+# <http://creativecommons.org/publicdomain/zero/1.0/>.
+
+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()