From c94bba31587cde932dd8043c02a900f461c3832c Mon Sep 17 00:00:00 2001 From: Aiden Carpenter <72675057+CaptainCarpensir@users.noreply.github.com> Date: Wed, 8 Nov 2023 16:16:43 -0800 Subject: [PATCH] docs: watch flag blog and run local flags (#5458) By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License. --- site/content/blogs/release-v132.en.md | 6 +++--- site/content/docs/commands/run-local.en.md | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/site/content/blogs/release-v132.en.md b/site/content/blogs/release-v132.en.md index 00089cc7660..70b774ce15c 100644 --- a/site/content/blogs/release-v132.en.md +++ b/site/content/blogs/release-v132.en.md @@ -19,7 +19,7 @@ Thanks to every one of you who shows love and support for AWS Copilot. Copilot v1.32 brings big enhancements to help you develop more flexibly and efficiently: - **`copilot run local --proxy`**: -- **`copilot run local --watch`**: +- **`copilot run local --watch`**: Automatically rebuilds your containers when you make changes to your code. [See detailed section](#copilot-run-local---watch) - **Importing ALBs**: You can front your Load-Balanced Web Services with existing ALBs. [See detailed section](#imported-ALBs) ???+ note "What’s AWS Copilot?" @@ -34,9 +34,9 @@ Copilot v1.32 brings big enhancements to help you develop more flexibly and effi ## +## `copilot run local --watch` -## - +The `--watch` flag watches your workspace and rebuilds your containers when you make changes to your code so you can develop continuously. This is extremely useful when used with `--proxy`, as it allows you to save the overhead time required to set up proxy each time you would rebuild your application! ## Imported ALBs diff --git a/site/content/docs/commands/run-local.en.md b/site/content/docs/commands/run-local.en.md index 6fd83bfadd0..103f54f0121 100644 --- a/site/content/docs/commands/run-local.en.md +++ b/site/content/docs/commands/run-local.en.md @@ -8,7 +8,7 @@ $ copilot run local [flags] ## What are the flags? ``` - -a, --app string Name of the application. (default "playground") + -a, --app string Name of the application. -e, --env string Name of the environment. --env-var-override stringToString Optional. Override environment variables passed to containers. Format: [container]:KEY=VALUE. Omit container name to apply to all containers. (default []) @@ -16,6 +16,9 @@ $ copilot run local [flags] -n, --name string Name of the service or job. --port-override list Optional. Override ports exposed by service. Format: :. Example: --port-override 5000:80 binds localhost:5000 to the service's port 80. (default []) + --proxy Optional. Proxy outbound requests to your environment's VPC. + --proxy-network ipNet proxy-network (default 172.20.0.0/16) + --watch Optional. Watch changes to local files and restart containers when updated. ``` ## Examples