Skip to content

Instantly share code, notes, and snippets.

@arsaccol
Created January 15, 2021 03:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arsaccol/5f3911059385a3523255e99b85d31bf2 to your computer and use it in GitHub Desktop.
Save arsaccol/5f3911059385a3523255e99b85d31bf2 to your computer and use it in GitHub Desktop.
Start a browser-sync server where you can develop front-end shit and have it reload automatically in the browser. Use `npm install -g browser-sync` to get it globally installed I guess.
#!/bin/bash
host='localhost'
port=8080
SOCKET_HOST=$host SOCKET_PORT=$port browser-sync start --server --files "./"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment