Skip to content

Instantly share code, notes, and snippets.

@hh-com
Last active September 26, 2019 20:56
Show Gist options
  • Save hh-com/f6b0718b85cd06d98f943e78ce5b0138 to your computer and use it in GitHub Desktop.
Save hh-com/f6b0718b85cd06d98f943e78ce5b0138 to your computer and use it in GitHub Desktop.
Browser-Sync und Contao (Windows)
1) Contao lokal installieren (WAMP)
2) vhost lokal einrichten und Windows Hosts-File
3) CMD (admin) npm installieren
4) CMD (admin) BrowserSync für das jeweilige Projekt installieren: npm install -i browser-sync
5) BrowserSync starten: browser-sync start --proxy vbeat:8080 --files **/*, !vendor/**, !/.history/**, !var/** --no-notify (proxy == vhost)
6) Verzeichniss ausschließen mit !
7) Fehlermeldung wenn zu viele Files watched werden.
INFO: Die externe IP kann falsch sein, dazu einfach mit ipconfig die IP des Systems suchen und diese mit dem Port auf externen Geräten eintragen
https://www.youtube.com/watch?v=Bxhr6OmNOJE
WordPress:
browser-sync start --proxy externer.server.auch.moeglich --files wp-content/themes/theme/** --no-notify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment