appsignal-ruby icon indicating copy to clipboard operation
appsignal-ruby copied to clipboard

Streamline deploy notifications in Capistrano deploys

Open jeffkreeftmeijer opened this issue 8 years ago • 2 comments

We prefer the APP_REVISION environment variable over the notify_of_deploy task, but since there's no proper way to set environment variables on the server in a Capistrano deploy, that's proving to be difficult to set up. We need a nicer way to do this, so we can actively recommend users to switch to using the APP_REVISION environment variable.

As reported in support (private Intercom link).

jeffkreeftmeijer avatar Jul 21 '17 09:07 jeffkreeftmeijer

Add a config option: revision: abcdef1 Or add a revision file APP_REVISON/.appsignal_revision with one line that reads the last revision We will keep the APP_REVISION env var

Also relevant for Elixir https://github.com/appsignal/appsignal-elixir/issues/215

Discuss when @thijsc is back

tombruijn avatar Aug 11 '17 08:08 tombruijn

We now have a revision config option: https://docs.appsignal.com/ruby/configuration/options.html#option-revision We still should look if there's a way to set it from the capistrano config, which sets it on the deployed servers.

tombruijn avatar Jul 27 '21 07:07 tombruijn