Giter VIP home page Giter VIP logo

Comments (7)

tombruijn avatar tombruijn commented on June 8, 2024 1

The PR was merged.
I'll keep you up-to-date on a new gem release

from appsignal-ruby.

tombruijn avatar tombruijn commented on June 8, 2024

Hi @adamof, if I understand the issue correctly you're using multiple capistrano stages (staging and beta), but no different staging and beta Rails environments.

You do want to track the beta stage, which runs in the rails environment staging. However, since we listen to the beta capistrano stage you don't get a deploy notification on for beta deploys.

What we can do is allow you to set a specific appsignal_env in capistrano. By default it listens to the capistrano stage, but if these don't match, as in your case, you can override it.

# config/deploy/staging.rb
set :stage, :staging
set :rails_env, :staging
# AppSignal env is `:staging`
# config/deploy/beta.rb
set :stage, :beta
set :rails_env, :staging
set :appsignal_env, :staging

I think this would solve your problem?


As an aside: In your setup it does mean everything from both stages (staging and beta) are collected under the staging environment in AppSignal, which might clutter it a bit and you might not immediately be able to see what error comes from which stage.

from appsignal-ruby.

adamof avatar adamof commented on June 8, 2024

Hey @tombruijn thanks for the response! I think this solution would work great for us.
As far as the mixed environments go, this is not much of an issue for us at the minute.

from appsignal-ruby.

tombruijn avatar tombruijn commented on June 8, 2024

@adamof I made a PR for this change in PR #119

You can try it out by replacing gem 'appsignal' to this in your Gemfile:

# Gemfile
gem 'appsignal', git: '[email protected]:appsignal/appsignal-ruby.git', branch: 'capistrano_appsignal_env'

Let me know if this is the behavior you want.

from appsignal-ruby.

adamof avatar adamof commented on June 8, 2024

Yep, that works! 🎆

from appsignal-ruby.

tombruijn avatar tombruijn commented on June 8, 2024

Great to hear!

I'll get the PR reviewed, merged and released. Will update you once we release a new official gem version you can use directly.

from appsignal-ruby.

adamof avatar adamof commented on June 8, 2024

from appsignal-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.