Skip to content
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

Version 1.1.1 did not work for me #241

Open
Hasna1 opened this issue Jun 14, 2016 · 3 comments
Open

Version 1.1.1 did not work for me #241

Hasna1 opened this issue Jun 14, 2016 · 3 comments

Comments

@Hasna1
Copy link

Hasna1 commented Jun 14, 2016

Hey Guys!

I encountered with an issue today with figaro. I have config/application.yml like

development:
  user_name: bloggingwebsite
  password: 'mypassword'

and in Gemfile I had

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'
  gem 'figaro'
end

Then it installed the version 1.1.1. When I tried to access the ENV['user_name'] it returned nil.

To fix this I had to fix my version to 1.0.0 explicitly.
Now its fixed..

So could you please find out what the problem is?

Thanks!

@laserlemon
Copy link
Owner

Are you using Spring? If so, restart Spring and let me know if that works.

@tomj
Copy link

tomj commented Oct 26, 2016

Thoughts on me adding this to README.md in a PR? May be helpful for less Rails like peeps like me when they're wondering why the ENV vars are stale on their tests.

Cheers! 😄

@thbar
Copy link

thbar commented May 22, 2017

Just logging this in case it helps someone else: it's not working either for me today, in a pure ruby app, using latest release (1.1.1). I tried using the v2 branch but go other problems which I hadn't got the time to investigate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants