Skip to content

Commit

Permalink
Not every flask app is decksite
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Jun 7, 2018
1 parent b27f0df commit 8d903c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions decksite.wsgi
@@ -1 +1,4 @@
from decksite import main, api, APP as application

if __name__ == '__main__':
application.run(host='0.0.0.0', debug=False)
2 changes: 1 addition & 1 deletion logsite.wsgi
@@ -1,4 +1,4 @@
from logsite import APP as application

if __name__ == '__main__':
application.run(host='0.0.0.0', debug=True)
application.run(host='0.0.0.0', debug=False)
2 changes: 1 addition & 1 deletion shared_web/flask_app.py
Expand Up @@ -61,7 +61,7 @@ def internal_server_error(self, e: Exception) -> Tuple[str, int]:
log_exception(e)
path = request.path
try:
repo.create_issue('500 error at {path}\n {e}'.format(path=path, e=e), session.get('id', 'logged_out'), 'decksite', 'PennyDreadfulMTG/perf-reports', exception=e)
repo.create_issue('500 error at {path}\n {e}'.format(path=path, e=e), session.get('id', 'logged_out'), self.name, 'PennyDreadfulMTG/perf-reports', exception=e)
except GithubException:
logger.error('Github error', e)
if request.path.startswith('/api/'):
Expand Down

0 comments on commit 8d903c6

Please sign in to comment.