From 9067fa8bd8c1a147027c3189db10a71b1fe94f6a Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Sun, 23 May 2021 14:04:33 +1000 Subject: [PATCH] Use GAE standard for the backend, no endpoints service --- README.md | 6 +++--- crabfit-backend/app.yaml | 11 +---------- crabfit-backend/package.json | 2 +- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 9049555..ea5f47f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Align your schedules to find the perfect time that works for everyone. ## Setup 1. Clone the repo. -2. Run `yarn` in both folders. +2. Run `yarn` in both backend and frontend folders. 3. Run `node index.js` in the backend folder to start the API. 4. Run `yarn start` in the frontend folder to start the front end. @@ -21,8 +21,8 @@ The browser extension in `crabfit-browser-extension` can be tested by first runn 2. Run `./deploy.sh` to compile and deploy. ### Backend -1. Deploy the backend `cd crabfit-backend && gcloud app deploy --project=crabfit --version=v1` -2. Deploy the endpoints service `cd crabfit-backend && gcloud endpoints services deploy swagger.yaml` +1. In the backend folder `cd crabfit-backend` +2. Deploy the backend `gcloud app deploy --project=crabfit --version=v1` ### Browser extension Compress everything inside the `crabfit-browser-extension` folder and use that zip to deploy using Chrome web store and Mozilla Add-on store. diff --git a/crabfit-backend/app.yaml b/crabfit-backend/app.yaml index 3136c1e..0e4cbaa 100644 --- a/crabfit-backend/app.yaml +++ b/crabfit-backend/app.yaml @@ -1,11 +1,2 @@ -runtime: nodejs +runtime: nodejs10 service: api -env: flex - -automatic_scaling: - min_num_instances: 1 - max_num_instances: 2 - -endpoints_api_service: - name: api-dot-crabfit.appspot.com - rollout_strategy: managed diff --git a/crabfit-backend/package.json b/crabfit-backend/package.json index ca93155..caf6b3e 100644 --- a/crabfit-backend/package.json +++ b/crabfit-backend/package.json @@ -7,7 +7,7 @@ "license": "MIT", "private": true, "engines": { - "node": ">= 10.0.0" + "node": ">=10.0.0" }, "scripts": { "start": "node index.js"