Skip to content
Browse files

Add scripts needed by heroku

  • Loading branch information...
1 parent 111ae9e commit 43b893db9d1f3559bec6247bcfc30fd77f2f3371 @majek majek committed Nov 2, 2011
Showing with 21 additions and 0 deletions.
  1. +3 −0 Procfile
  2. +18 −0 run.py
View
3 Procfile
@@ -0,0 +1,3 @@
+web: python run.py
+
+
View
18 run.py
@@ -0,0 +1,18 @@
+import os
+from flask import Flask
+import django.core.handlers.wsgi
+
+
+app = Flask(__name__)
+
+os.chdir('mud')
+os.environ['DJANGO_SETTINGS_MODULE'] = 'mud.settings'
+app.wsgi_app = django.core.handlers.wsgi.WSGIHandler()
+
+# preload
+import mud.core
+
+if __name__ == "__main__":
+ port = int(os.environ.get("PORT", 5000))
+ app.run(host='0.0.0.0', port=port)
+

0 comments on commit 43b893d

Please sign in to comment.
Something went wrong with that request. Please try again.