This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carlos Sanchez Mateo
committed
Sep 20, 2017
1 parent
17a4d34
commit 8799385
Showing
3 changed files
with
24 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
""" | ||
Import class | ||
""" | ||
from biredirect.boxstores import BoxKeysStoreRedis # noqa | ||
from biredirect.redirector import APP # noqa | ||
from biredirect.reportserver import ReportServer # noqa | ||
from biredirect.settings import * # noqa | ||
from biredirect.utils import * # noqa |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env python | ||
import os | ||
import sys | ||
|
||
from biredirect.redirector import APP | ||
from biredirect.settings import PORT | ||
|
||
|
||
def main(): | ||
flask_app = APP | ||
if os.environ.get('DEBUG'): | ||
flask_app.debug = True | ||
|
||
flask_app.run('0.0.0.0', port=PORT, use_reloader=False, debug=True) | ||
|
||
# Only run if script is run directly and not by an import | ||
if __name__ == "__main__": | ||
sys.exit(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