This repository has been archived by the owner on May 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
making init_app implicit. Fixes #282
- Loading branch information
Stephanie Br
authored and
Stephanie Br
committed
May 4, 2017
1 parent
f5ae90b
commit 3c4fc56
Showing
7 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/usr/bin/env python | ||
|
||
from hacknight import app, init_for | ||
init_for('development') | ||
app.run('0.0.0.0', debug=True, port=8100) | ||
from hacknight import app | ||
app.run('0.0.0.0', port=8100) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
import nose | ||
|
||
os.environ['ENVIRONMENT'] = "testing" | ||
os.environ['FLASK_ENV'] = "testing" | ||
nose.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import sys | ||
import os.path | ||
sys.path.insert(0, os.path.dirname(__file__)) | ||
from hacknight import app as application, init_for | ||
init_for('production') | ||
from hacknight import app as application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import sys | ||
import os.path | ||
sys.path.insert(0, os.path.dirname(__file__)) | ||
from hacknight import app as application, init_for | ||
init_for('production') | ||
from hacknight import app as application |