Environment Variables & Settings Objects in Ruby

Опубликовано: 04 Июнь 2026
на канале: Mike Rogers
780
17

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

➡ https://github.com/bkeepers/dotenv
➡ https://github.com/ddollar/foreman
➡ https://andycroll.com/ruby/wrap-your-...

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: https://mikerogers.io/
➡ Twitter:   / mikerogers0  
➡ GitHub: https://github.com/mikerogers0
➡ YouTube:    / mikerogers0  
➡ BuyMeACoffee: https://www.buymeacoffee.com/MikeRogers0
➡ Dev.to: https://dev.to/mikerogers0

#RubyOnRails #ENVs