Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

init Flask env

  • Loading branch information...
commit 05002b10c2f0c181e1f6b7bc246dddece9aea341 1 parent 055df0d
@eweiser authored
View
2  .gitignore
@@ -0,0 +1,2 @@
+*.swp
+.DS_Store
View
4 README.md
@@ -1,4 +0,0 @@
-settle_princeton
-================
-
-A gamefinder (and hopefuly ladder) for Settlers of Catan games on Princeton campus.
View
5 __init__.py
@@ -0,0 +1,5 @@
+from flask import Flask
+app = Flask(__name__)
+
+if __name__ == '__main__':
+ app.run()
View
BIN  __init__.pyc
Binary file not shown
View
19 manage.py
@@ -0,0 +1,19 @@
+# Set the path
+import os, sys
+sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
+
+from flask.ext.script import Manager, Server
+from settle_princeton import app
+
+manager = Manager(app)
+
+# Turn on debugger by default and reloader
+manager.add_command("runserver", Server(
+ use_debugger = True,
+ use_reloader = True,
+ host = '0.0.0.0')
+)
+
+if __name__ == "__main__":
+ manager.run()
+
Please sign in to comment.
Something went wrong with that request. Please try again.