Capistrano versions 2 and 3 are officially supported by the AppSignal Ruby gem, but might require some manual configuration.
Make sure you load the
appsignal/capistrano file in Capistrano's
This should be done automatically when you run the
appsignal install command
1 2 3 4
# Capfile require 'capistrano' # Other Capistrano requires. require 'appsignal/capistrano'
# deploy.rb set :appsignal_config, name: 'My app'
appsignal_config allows you to override any config loaded from the
appsignal.yml configuration file.
1 2 3
# deploy.rb set :stage, :alpha set :appsignal_env, :staging
appsignal_env allows you to load a different AppSignal environment when a
stage name doesn't match the AppSignal environment as named in the AppSignal
config file or environment variable.
We have two example applications in our examples repository on GitHub. The examples show how to set up AppSignal in small Capistrano applications while loading configuration values from the environment using gems like dotenv and Figaro.
Want to help us improve this documentation page? Create a pull request