Environment Variables & Settings Objects in Ruby
580 بار بازدید -
3 سال پیش
-
ENV's (Environment Variables) are a
ENV's (Environment Variables) are a fantastic way to pass API credentials to your application without storing them in version control.
In this episode of quickly explain how an ENV works, how to add a fallback & an awesome approach to managing them across your application.
Sources
➡ github.com/bkeepers/dotenv
➡ github.com/ddollar/foreman
➡ andycroll.com/ruby/wrap-your-environment-variables…
Chapters
0:00 - What are we going to do
0:18 - What is an ENV
1:32 - What is an .env file?
2:30 - Passing ENVs to your Application
4:00 - Adding fallback values with .fetch
4:50 - Settings Objects
Follow Me Online
➡ Blog: mikerogers.io/
➡ Twitter: twitter.com/MikeRogers0
➡ GitHub: github.com/mikerogers0
➡ YouTube: youtube.com/c/MikeRogers0
➡ BuyMeACoffee: www.buymeacoffee.com/MikeRogers0
➡ Dev.to: dev.to/mikerogers0
#RubyOnRails #ENVs
3 سال پیش
در تاریخ 1400/03/23 منتشر شده
است.
580
بـار بازدید شده