Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Browser-sync + Rails 4.2 (without tearing out the asset pipeline) So far so good
#!/usr/bin/env bash
set -e
rails s webrick &
sleep 3
browser-sync start --files "app/views/**/*.erb, app/assets/stylesheets/**/*.scss, app/assets/stylesheets/**/*.sass" --proxy "localhost:3000" --reload-delay 1000 --no-open

This comment has been minimized.

Copy link
Owner Author

@bnicholas bnicholas commented Apr 17, 2015

@revans is responsible for this tricky bit of code put in the ./bin folder. Up until now all I could find regarding using browser-sync with Rails involved tearing out the asset pipeline to make it work. So far so good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment