From b7c88b7f77084b1d57571b45d655e9a03552289b Mon Sep 17 00:00:00 2001 From: Mustafa Ucuncu <40738345+mustaf115@users.noreply.github.com> Date: Wed, 18 Oct 2023 16:27:49 -0600 Subject: [PATCH 1/2] Update livereload.md Added a tip fixing live reload for development containers. --- docs/cli/livereload.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/cli/livereload.md b/docs/cli/livereload.md index 4d2d160ee78..b43a029693b 100644 --- a/docs/cli/livereload.md +++ b/docs/cli/livereload.md @@ -58,6 +58,7 @@ Remember, with the `--external` option, others on your Wi-Fi network will be abl - With Cordova, use the `--device`, `--emulator`, and `--target` options to narrow down target devices. Use the `--list` option to list all targets. See usage in the [command docs](commands/cordova-run.md). - You can separate the dev server process and the deploy process by using `ionic serve` and the `--livereload-url` option of `ionic cordova run` or `ionic capacitor run`. - For Android, it is possible to configure [adb](https://developer.android.com/studio/command-line/adb) to always forward ports while the adb server is running (see `adb reverse`). With port forwarding set up, an external address would no longer be required. You can also setup the adb bridge over TCP such that subsequent deploys no longer need a USB cable. +- If you are using a development container, you may see that live reload does not work. To fix it, set `projects.app.architect.serve.configurations.development.poll` to `1` in `angular.json`. ### Using SSL From c54fdb2a82ccc08f44a454ee575fd7cd95e99c6b Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 25 Jul 2024 17:45:11 -0400 Subject: [PATCH 2/2] docs(cli): include livereload in a container with angular note --- docs/cli/livereload.md | 2 +- versioned_docs/version-v7/cli/livereload.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/cli/livereload.md b/docs/cli/livereload.md index b43a029693b..be45d2e0392 100644 --- a/docs/cli/livereload.md +++ b/docs/cli/livereload.md @@ -58,7 +58,7 @@ Remember, with the `--external` option, others on your Wi-Fi network will be abl - With Cordova, use the `--device`, `--emulator`, and `--target` options to narrow down target devices. Use the `--list` option to list all targets. See usage in the [command docs](commands/cordova-run.md). - You can separate the dev server process and the deploy process by using `ionic serve` and the `--livereload-url` option of `ionic cordova run` or `ionic capacitor run`. - For Android, it is possible to configure [adb](https://developer.android.com/studio/command-line/adb) to always forward ports while the adb server is running (see `adb reverse`). With port forwarding set up, an external address would no longer be required. You can also setup the adb bridge over TCP such that subsequent deploys no longer need a USB cable. -- If you are using a development container, you may see that live reload does not work. To fix it, set `projects.app.architect.serve.configurations.development.poll` to `1` in `angular.json`. +- If you are using a development container with Angular, you may see that live reload does not work. To fix it, set `projects.app.architect.serve.configurations.development.poll` to `1` in `angular.json`. ### Using SSL diff --git a/versioned_docs/version-v7/cli/livereload.md b/versioned_docs/version-v7/cli/livereload.md index 4d2d160ee78..be45d2e0392 100644 --- a/versioned_docs/version-v7/cli/livereload.md +++ b/versioned_docs/version-v7/cli/livereload.md @@ -58,6 +58,7 @@ Remember, with the `--external` option, others on your Wi-Fi network will be abl - With Cordova, use the `--device`, `--emulator`, and `--target` options to narrow down target devices. Use the `--list` option to list all targets. See usage in the [command docs](commands/cordova-run.md). - You can separate the dev server process and the deploy process by using `ionic serve` and the `--livereload-url` option of `ionic cordova run` or `ionic capacitor run`. - For Android, it is possible to configure [adb](https://developer.android.com/studio/command-line/adb) to always forward ports while the adb server is running (see `adb reverse`). With port forwarding set up, an external address would no longer be required. You can also setup the adb bridge over TCP such that subsequent deploys no longer need a USB cable. +- If you are using a development container with Angular, you may see that live reload does not work. To fix it, set `projects.app.architect.serve.configurations.development.poll` to `1` in `angular.json`. ### Using SSL