You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-13
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,14 @@
1
-
# tyler36/ddev-browsersync <!-- omit in toc -->
1
+
# ddev-browsersync <!-- omit in toc -->
2
2
3
-
[](https://github.com/tyler36/ddev-browsersync/actions/workflows/tests.yml)
3
+
[](https://github.com/drud/ddev-browsersync/actions/workflows/tests.yml)
4
4
5
5
-[Introduction](#introduction)
6
-
-[Requirements](#requirements)
7
6
-[Getting Started](#getting-started)
8
-
-[Laravel-mix example](#laravel-mix-example)
7
+
-[What does this add-on do and add?](#what-does-this-add-on-do-and-add)
8
+
-[Other ways to use browsersync with this add-on](#other-ways-to-use-browsersync-with-this-add-on)
@@ -25,13 +28,13 @@ This add-on requires DDEV v1.19.3 or higher.
25
28
- Install the DDEV browsersync add-on:
26
29
27
30
```shell
28
-
ddev get tyler36/ddev-browsersync
31
+
ddev get drud/ddev-browsersync
29
32
ddev restart
30
33
ddev browsersync
31
34
```
32
35
33
36
The new `ddev browsersync` global command runs browsersync inside the web container and provides a
34
-
link ("External") to the browsersync-update URL. Use the URL in the output that says something like "External: http://d9.ddev.site:3000".
37
+
link ("External") to the browsersync-update URL. Use the URL in the output that says something like "External: <http://d9.ddev.site:3000>".
35
38
36
39
## What does this add-on do and add?
37
40
@@ -42,6 +45,7 @@ link ("External") to the browsersync-update URL. Use the URL in the output that
42
45
5. Adds a `ddev browsersync` shell command globally, which lets you easily start browsersync when you want it.
43
46
44
47
## Other ways to use browsersync with this add-on
48
+
45
49
There are many other options to integrate browsersync into your project, including:
@@ -59,16 +63,18 @@ should be watched. If you watch less things it's easier on your computer.
59
63
60
64
### Problems
61
65
62
-
* If you get `Error: ENOSPC: System limit for number of file watchers reached, watch '/var/www/html/web/core/themes/classy/images/icons/video-x-generic.png'` it means you either have to increase the file watcher limit or decrease the number of files you're watching.
63
-
* To decrease the number of files you're watching, edit the `ignore` section in `browser-sync.js` (or another config file if you have a more complex setup).
64
-
* On colima, `colima ssh` and `sudo sysctl fs.inotify.max_user_watches` to see how many watches you have. To increase it, use something like `sudo sysctl -w fs.inotify.max_user_watches=2048576`. Unfortunately, this has to be done on every colima restart.
65
-
* On Docker Desktop for Mac, `docker run -it --privileged --pid=host justincormack/nsenter1` and `sysctl -w fs.inotify.max_user_watches=1048576`. Unfortunately, this has to be done again on every Docker restart.
66
-
* On Docker Desktop for Windows, add or edit `~/.wslconfig` with these contents:
67
-
```
66
+
- If you get `Error: ENOSPC: System limit for number of file watchers reached, watch '/var/www/html/web/core/themes/classy/images/icons/video-x-generic.png'` it means you either have to increase the file watcher limit or decrease the number of files you're watching.
67
+
- To decrease the number of files you're watching, edit the `ignore` section in `browser-sync.js` (or another config file if you have a more complex setup).
68
+
- On colima, `colima ssh` and `sudo sysctl fs.inotify.max_user_watches` to see how many watches you have. To increase it, use something like `sudo sysctl -w fs.inotify.max_user_watches=2048576`. Unfortunately, this has to be done on every colima restart.
69
+
- On Docker Desktop for Mac, `docker run -it --privileged --pid=host justincormack/nsenter1` and `sysctl -w fs.inotify.max_user_watches=1048576`. Unfortunately, this has to be done again on every Docker restart.
70
+
- On Docker Desktop for Windows, add or edit `~/.wslconfig` with these contents:
0 commit comments