Skip to content

Commit

Permalink
Watch .env for changes with Spring in Rails 4
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Jun 11, 2014
1 parent 984c403 commit 56cefed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/dotenv-rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
end

Dotenv.load '.env'

Spring.watch '.env' if defined?(Spring)

1 comment on commit 56cefed

@j15e
Copy link

@j15e j15e commented on 56cefed Oct 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fails with a normally setup app, gem railties initializer should not add watcher according to this contributor comment here : rails/spring#195 (comment)

Please sign in to comment.