New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing Figaro.application.path #183
Comments
Seems there's no direct configuration provided for this, at least for the Rails usage. The This works when used in an initializer: # config/initializers/figaro.rb
Figaro.application.path = Rails.root.join('config', 'passport.yml')
Figaro.load Although it's more of a workaround, as |
Yup, it's the workaround I ended up using for the time being. The crux is that because Figaro runs on before_configuration, you can't even config it with an initializer. I wonder where we could make space to put some settings. |
Also to note that the param in the workaround will be ignored by |
What if, dirty fix, we checked if there was a |
@laserlemon Would you accept a PR that would run |
+1 |
I initially commented on e8b302f, but I figure opening an issue will be better for tracking.
How do you actually change the path of
config/application.yml
? To be honest, I don't like that default, as it always collides withconfig/application.rb
in autocompletion.The tests allude to
Figaro::Application.new(path = "")
, but it's not us who actually call that function.The documentation is silent as to how to do that
The text was updated successfully, but these errors were encountered: