Skip to content

Commit

Permalink
Re-routing http requests to https
Browse files Browse the repository at this point in the history
  • Loading branch information
brystmar committed Aug 26, 2020
1 parent bf563b7 commit 674c089
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ breadvar*
**/.pytest_cache
**/.pytest_cache/**
ui/
.cert/

# Created by https://www.gitignore.io/api/venv,macos,pycharm
# Edit at https://www.gitignore.io/?templates=venv,macos,pycharm
Expand Down Expand Up @@ -148,3 +149,4 @@ pip-selfcheck.json

# End of https://www.gitignore.io/api/venv,macos,pycharm
/.aws/*
/.cert/
2 changes: 2 additions & 0 deletions .idea/breadsheet.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
"""Define our app using the create_app function in backend/__init__.py"""
# App Engine logging
# Global logger
from backend.global_logger import logger, local

# GCP debugger & logging
try:
import googleclouddebugger
googleclouddebugger.enable(breakpoint_enable_canary=False)
except ImportError:
logger.info(f"Successfully initialized googleclouddebugger!")
except ImportError as e:
logger.info(f"Error attempting to initialize googleclouddebugger: {e}")
pass

# Global logger
from backend.global_logger import logger, local

# External packages
from flask import redirect, request
from flask_cors import CORS
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ Flask==1.1.2
Flask-Cors==3.0.8
Flask-Moment==0.10.0
Flask-RESTful==0.3.8
Flask-SSLify==0.1.5
Flask-WTF==0.14.3
google-python-cloud-debugger
grpcio==1.31.0
gunicorn==20.0.4
httplib2==0.18.1
idna==2.10
importlib-metadata==1.5.0
Expand Down

0 comments on commit 674c089

Please sign in to comment.