Skip to content

Commit

Permalink
Rescue from bundler require error
Browse files Browse the repository at this point in the history
Resolves an issue where spring tries to `File.expand_path` and the
`$HOME` variable is not set.

This was identified as an issue with certain cloud provider
environments.
  • Loading branch information
jaydorsey committed Apr 13, 2018
1 parent 447b94c commit 2dd59d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dotenv/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
event = ActiveSupport::Notifications::Event.new(*args)
Spring.watch event.payload[:env].filename if Rails.application
end
rescue LoadError
rescue LoadError, ArgumentError
# Spring is not available
end

Expand Down

0 comments on commit 2dd59d9

Please sign in to comment.