We need to separate between the environment variables that are used when Capistrano performs its tasks (for example, deployment) and the environment variables that Rails use when working in production mode on the server.
If you need environment variables during a capistrano 3 session, I believe that set :default_envis the way to go. (I'm still on capistrano 2 myself, so I'm not 100% sure).
, , , - Capistrano, Figaro rails_config
? , , , Rails capistrano. , script, , rails rake, cron .