I’m currently deploying my Rails application on Amazon and I’m facing a problem with environment variables.
I\'m using the dotenv gem on development and testing and
In Capistrano 3 add require "dotenv/rails-now" to your Capfile. This will make sure that capistrano has access to the environment as well.
require "dotenv/rails-now"
(We had issues with capistrano accessing the API token for appsignal, so capistrano wasn't able to notify appsignal when a new deploy was done)