Skip to content

Commit

Permalink
tweaked deployment configuration for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jar2333 committed Mar 18, 2024
1 parent faa455b commit 9a28618
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file specifies files that are *not* uploaded to Google Cloud
# using gcloud. It follows the same syntax as .gitignore, with the addition of
# "#!include" directives (which insert the entries of the given .gitignore-style
# file at that point).
#
# For more information, run:
# $ gcloud topic gcloudignore
#
.gcloudignore
# If you would like to upload your .git directory, .gitignore file or files
# from your .gitignore file, remove the corresponding line
# below:
.git
.gitignore

# Python pycache:
__pycache__/
# Ignored by the build system
/setup.cfg
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

@app.route("/")
def root():
return "hello world"
return "Hello World!"
16 changes: 16 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@

runtime: python310

# Commented out because this is going to be the default service
# service: samoyedapi

# env_variables:
# PORT: "8000"

instance_class: F1

automatic_scaling:
min_instances: 1
max_instances: 1
min_idle_instances: 0
max_idle_instances: 0

entrypoint: gunicorn -b :$PORT -w 2 app:app

handlers:
# This configures Google App Engine to serve the files in the app's static
# directory.
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ pytest==8.1.1
Flask_Caching==2.1.0
pdoc==14.4.0
pytest_cov==4.1.0
ruff==0.3.3
ruff==0.3.3
gunicorn==21.2.0

0 comments on commit 9a28618

Please sign in to comment.