Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
SatyaanM committed Apr 22, 2022
1 parent e3888e3 commit cb62668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions App/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from flask_googlemaps import GoogleMaps
from flask_login import LoginManager
from flask_uploads import DOCUMENTS, IMAGES, TEXT, UploadSet, configure_uploads
# from flask_wtf.csrf import CSRFProtect

from App.controllers import setup_jwt, load_user_from_id
from App.database import init_db, get_migrate
Expand All @@ -33,7 +32,7 @@ def loadConfig(app, config):
app.config["DEBUG"] = os.environ.get("ENV").upper() != "PRODUCTION"
app.config["ENV"] = os.environ.get("ENV")
app.config["GOOGLEMAPS_KEY"] = os.environ.get("GOOGLEMAPS_KEY")
# app.config["SESSION_COOKIE_SECURE"] = False
app.config['SESSION_COOKIE_SECURE'] = False
for key, value in config.items():
app.config[key] = config[key]

Expand All @@ -57,7 +56,6 @@ def create_app(config={}):

app = create_app()
login_manager = LoginManager(app)
# csrf = CSRFProtect(app)
GoogleMaps(app)


Expand Down
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn -w 1 -t 3 -b 0.0.0.0:8080 App.main:app
web: gunicorn -w 4 App.main:app --preload

0 comments on commit cb62668

Please sign in to comment.