Enable Rack::LiveReload via environment variable RAKE_LIVE_RELOAD.
This commit is contained in:
parent
5bfa535b62
commit
15d8cb213d
1 changed files with 3 additions and 2 deletions
|
@ -31,8 +31,9 @@ Rails.application.configure do
|
|||
#config.assets.debug = true
|
||||
config.assets.debug = false
|
||||
|
||||
if defined?(Rack::LiveReload)
|
||||
# Automatically inject JavaScript needed for LiveReload
|
||||
# Automatically inject JavaScript needed for LiveReload
|
||||
if ENV['RAKE_LIVE_RELOAD'].present?
|
||||
require 'rack-livereload'
|
||||
config.middleware.insert_after(
|
||||
ActionDispatch::Static,
|
||||
Rack::LiveReload,
|
||||
|
|
Loading…
Reference in a new issue