diff options
| author | Zog | 2018-01-03 16:32:55 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-08 08:18:57 +0100 | 
| commit | 4b4ec65557606b8fa7617db9397cd663edcbab78 (patch) | |
| tree | a7bbbe89cf56add8f958db7251e921a06079d56c | |
| parent | 913d6935727ace3ac94c08adb4e1ec378741fb19 (diff) | |
| download | chouette-core-4b4ec65557606b8fa7617db9397cd663edcbab78.tar.bz2 | |
Refs #5455; Adds a livereload middleware
This allow us to reload the CSS withour reloading the whole page.
You'll thank me the day you'll work on React-heavy pages.
| -rw-r--r-- | Gemfile | 1 | ||||
| -rw-r--r-- | Gemfile.lock | 3 | ||||
| -rw-r--r-- | config/environments/development.rb | 2 | 
3 files changed, 6 insertions, 0 deletions
| @@ -158,6 +158,7 @@ group :development do    gem 'bundler-audit'    gem 'spring-commands-rspec'    gem 'dbshell-rails' +  gem 'rack-livereload'    platforms :ruby_20, :ruby_21, :ruby_22 do      gem 'better_errors' diff --git a/Gemfile.lock b/Gemfile.lock index ade052d8a..e673b7e31 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -363,6 +363,8 @@ GEM      rabl (0.13.1)        activesupport (>= 2.3.14)      rack (1.6.8) +    rack-livereload (0.3.16) +      rack      rack-protection (1.5.3)        rack      rack-proxy (0.6.2) @@ -651,6 +653,7 @@ DEPENDENCIES    pundit    quiet_assets    rabl +  rack-livereload    rails (~> 4.2.8)    rails-assets-bootstrap-sass-official (~> 3.3.0)!    rails-assets-footable (~> 2.0.3)! diff --git a/config/environments/development.rb b/config/environments/development.rb index e9cd16c34..b14ce60fa 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -93,4 +93,6 @@ Rails.application.configure do    config.validation_spec = "http://www.chouette.mobi/neptune-validation/v21/"    config.i18n.available_locales = [:fr, :en] + +  config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload)  end | 
