-
Notifications
You must be signed in to change notification settings - Fork 25
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
Replace the figaro
gem to dotenv-rails
gem
#23
Comments
I prefer the docker-compose way and removing both gems altogether. |
@MidnightWonderer we could use that when we deploy docker containers, which we dont yet. |
@anduonghien way back, we used to rely on dotenv but moved to Figaro as it has better support for Heroku + we can group/share variables for all environment in a single file vs multiple files with dotenv (.env.development, .env.test). As for sharing env variables between Ruby and JS, it's not a critical issue in our current setup as we usually have a JS to a front-end client (not a Node.JS app) which is not sharing much dependency with the Ruby backend. But if we find it's something we would like to have to be future-proof then I don't see any issue to switch back |
Closed in favor of #394 (sorry for that duplicate 🙈 ) |
The problem is we want to share the ENV variable between Rails and Node JS on the development environment.
For Rails, the
figaro
use theapplication.yml
to export the ENV variables.For Node JS, we use the dotenv to load the ENV on development environment, the ENV variables store in
.env
file.So the problem now is we have 2 places to store the ENV variable for the development environment, 1 is
application.yml
for Rails and 1 is.env
for Node JS.So on Rails, if we change the Gem from
figaro
to dotenv-rails, we can use the same.env
file both Rails and Node JS.The text was updated successfully, but these errors were encountered: