Skip to content

Commit

Permalink
Separate site
Browse files Browse the repository at this point in the history
  • Loading branch information
avgupta456 committed Apr 18, 2024
1 parent 8e8159e commit 9c9429e
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/deploy/api_app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ service: default
runtime: python311
entrypoint: gunicorn -w 1 -t 600 -k uvicorn.workers.UvicornWorker main:app

instance_class: F4
instance_class: F1

automatic_scaling:
min_instances: 1
Expand Down
12 changes: 12 additions & 0 deletions backend/deploy/site_app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
service: site
runtime: python311
entrypoint: gunicorn -w 1 -t 600 -k uvicorn.workers.UvicornWorker main:app

instance_class: F4

automatic_scaling:
min_instances: 1
max_instances: 4

env_variables:
LOCAL_DB: false
18 changes: 18 additions & 0 deletions backend/deploy/site_cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
steps:
- name: node:10.15.1
entrypoint: npm
args: ["install"]
dir: "backend"
- name: node:10.15.1
entrypoint: npm
args: ["run", "create-env"]
dir: "backend"
env:
- "CRDB_USER=abhijit"
- "CRDB_PWD=${_CRDB_PWD}"
- "CRDB_HOST=free-tier.gcp-us-central1.cockroachlabs.cloud:26257"
- "CRDB_CLUSTER=statbotics-5256"
- "PROD=True"
- name: "gcr.io/cloud-builders/gcloud"
args: ["app", "deploy", "--appyaml", "./deploy/site_app.yaml"]
dir: "backend"

0 comments on commit 9c9429e

Please sign in to comment.