Created
January 31, 2013 16:38
-
-
Save johnbintz/4684194 to your computer and use it in GitHub Desktop.
Make guard, guard-livereload, and a Rails server play nice in Foreman, so that you can see logs in the Foreman output and so Guard doesn't take over the input/output.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyApplication | |
class Application < Rails::Application | |
config.logger = Logger.new($stdout) | |
config.middleware.insert_before(::Rack::Lock, ::Rack::LiveReload) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :livereload do | |
guard 'livereload' do | |
watch(things) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails: rails s | |
guard: guard -g livereload -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just a heads up.. setting up logger like that will break web-console