Skip to content

Commit

Permalink
Flasky things
Browse files Browse the repository at this point in the history
  • Loading branch information
krak3n committed Oct 8, 2013
1 parent 036fe44 commit 344f6e6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
.vagrant
.pyc
*.pyc
2 changes: 2 additions & 0 deletions src/foo/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DEBUG = True
TESTING = False
5 changes: 4 additions & 1 deletion src/foo/run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from flask import Flask
app = Flask(__name__)
app = Flask('foo')


@app.route('/')
Expand All @@ -8,9 +8,12 @@ def hello_world():


if __name__ == '__main__':
app.config.from_object('foo.config') # Default

kwargs = {}
kwargs.update({
'host': '0.0.0.0',
'port': 8080
})

app.run(**kwargs)

0 comments on commit 344f6e6

Please sign in to comment.