From e4a4f526dafd9f9a645c8b80f3fb665820cdc635 Mon Sep 17 00:00:00 2001 From: Yousan_O Date: Tue, 11 Jun 2024 10:19:01 +0900 Subject: [PATCH 1/2] fix: Fixed dev deploy document to use context option multiply and not to use npx --- docs/build_dev.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/build_dev.md b/docs/build_dev.md index 420c4bb..d427b96 100644 --- a/docs/build_dev.md +++ b/docs/build_dev.md @@ -75,7 +75,7 @@ $ export IMAGE_TAG=先ほどpushしたimage tag 使用するリージョンごとに一回実行する必要がある。2回目以降は不要。 ```console -$ npx cdk --context stage=dev tag=${IMAGE_TAG} --profile decidim bootstrap +$ cdk --context stage=dev --context tag=${IMAGE_TAG} --profile decidim bootstrap ``` ## 6-2. デプロイ前の差分確認 @@ -83,13 +83,13 @@ $ npx cdk --context stage=dev tag=${IMAGE_TAG} --profile decidim bootstrap どんなリソースが作成されるのかを確認できる。 ```console -$ npx cdk --context stage=dev tag=${IMAGE_TAG} --profile decidim diff +$ cdk --context stage=dev --context tag=${IMAGE_TAG} --profile decidim diff ``` ## 6-3. デプロイ実行 ```console -$ npx cdk --context stage=dev tag=${IMAGE_TAG} --profile decidim deploy --all --require-approval never +$ cdk --context stage=dev --context tag=${IMAGE_TAG} --profile decidim deploy --all --require-approval never ``` 上記コマンドが成功すれば、デプロイは成功です。 From 3c517eb6a5151eaeb1a2d453fd9f2665c4908128 Mon Sep 17 00:00:00 2001 From: Yousan_O Date: Tue, 11 Jun 2024 10:23:35 +0900 Subject: [PATCH 2/2] fix: Remove npx at README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 42e147c..9e319bd 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ # CDK ```console -$ npx cdk --context stage=dev --profile decidim diff +$ cdk --context stage=dev --profile decidim diff ```