Skip to content

Commit

Permalink
python fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
runette committed Jun 5, 2023
1 parent 5fcdd7f commit 447207c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
8 changes: 5 additions & 3 deletions dispatch.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
dispatch:
# Version 3 stageing
- url: "v3.bigcannonproject.org/"
- url: "v3.bigcannonproject.org/*"
service: stageing
# Default service
- url: "*.bigcannonproject.org/"
- url: "v2.bigcannonproject.org/*"
service: default
- url: "bigcannonproject.org/"
- url: "bigcannonproject.org/*"
service: default
- url: "www.bigcannonproject.org/*"
service: default
13 changes: 2 additions & 11 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@
import logging
from google.cloud import ndb

try:
import googleclouddebugger
googleclouddebugger.enable(
breakpoint_enable_canary=True
)
except ImportError:
pass

firebase_admin.initialize_app()
client = ndb.Client()

Expand All @@ -53,6 +45,5 @@
# the "static" directory. See:
# http://flask.pocoo.org/docs/1.0/quickstart/#static-files. Once deployed,
# App Engine itself will serve those files as configured in app.yaml.
if 'WINGDB_ACTIVE' in os.environ:
app.debug = False
app.run(host='0.0.0.0', port=8000)
app.debug = False
app.run(host='0.0.0.0', port=8000)
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Flask
Flask==2.2.5
googlemaps
Jinja2
simplejson
Expand Down

0 comments on commit 447207c

Please sign in to comment.