Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

init Flask env

  • Loading branch information...
commit 05002b10c2f0c181e1f6b7bc246dddece9aea341 1 parent 055df0d
Eric Weiser authored
2  .gitignore
... ... @@ -0,0 +1,2 @@
  1 +*.swp
  2 +.DS_Store
4 README.md
Source Rendered
... ... @@ -1,4 +0,0 @@
1   -settle_princeton
2   -================
3   -
4   -A gamefinder (and hopefuly ladder) for Settlers of Catan games on Princeton campus.
5 __init__.py
... ... @@ -0,0 +1,5 @@
  1 +from flask import Flask
  2 +app = Flask(__name__)
  3 +
  4 +if __name__ == '__main__':
  5 + app.run()
BIN  __init__.pyc
Binary file not shown
19 manage.py
... ... @@ -0,0 +1,19 @@
  1 +# Set the path
  2 +import os, sys
  3 +sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
  4 +
  5 +from flask.ext.script import Manager, Server
  6 +from settle_princeton import app
  7 +
  8 +manager = Manager(app)
  9 +
  10 +# Turn on debugger by default and reloader
  11 +manager.add_command("runserver", Server(
  12 + use_debugger = True,
  13 + use_reloader = True,
  14 + host = '0.0.0.0')
  15 +)
  16 +
  17 +if __name__ == "__main__":
  18 + manager.run()
  19 +

0 comments on commit 05002b1

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