From d8501ffcaac0d26235103d386fb670df48062a5f Mon Sep 17 00:00:00 2001 From: keyasuda Date: Tue, 19 Mar 2024 19:50:04 +0900 Subject: [PATCH] update backend deployment command --- .gcloudignore | 17 +++++++++++++++++ README.md | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .gcloudignore diff --git a/.gcloudignore b/.gcloudignore new file mode 100644 index 0000000..5a616cb --- /dev/null +++ b/.gcloudignore @@ -0,0 +1,17 @@ +# 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 + +node_modules +#!include:.gitignore diff --git a/README.md b/README.md index d62d465..52dfdbd 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ npm run build-prod For Cloud Function use the following command inside backend/: ``` -gcloud functions deploy ichiba_proxy --project=PROJECT_ID --runtime ruby27 --memory=128MB --trigger-http --allow-unauthenticated --region=asia-northeast1 --set-env-vars RWS_APPLICATION_ID=APPLICATION_ID,ALLOW_ORIGIN=ORIGIN +gcloud functions deploy ichiba_proxy --project=PROJECT_ID --runtime ruby32 --memory=128MB --trigger-http --allow-unauthenticated --region=asia-northeast1 --set-env-vars RWS_APPLICATION_ID=APPLICATION_ID,ALLOW_ORIGIN=ORIGIN --entry-point=ichiba_proxy ``` ## Usage