We've moved discussions to Discord

Appsignal Deploy Tracking

Ugurcan Kaya
Chris Oliver    Appsignal recommends deploy tracking by adding a marker to appsignal.yml file

https://docs.appsignal.com/application/markers/deploy-markers.html

I added this: 

production:
  <<: *defaults
  active: true
  revision: "<%= `git rev-parse --verify HEAD` %>"

but this does not seem to work.

Is there another way to shell out to git command and get the latest commit of the deployed version? If yes, perhaps we can add it to the appsignal.yml template in jumpstart?

By the way, I use Hatchbox, Heroku allows for deploy hooks. I checked the docs but could not find anything similar so tried the above.
Chris Oliver
Hatchbox deploys are regular folders, it doesn't live in a git repo. There's a REVISION file created every deploy you can read.

  revision: "<%= File.read("REVISION") %>"
Ugurcan Kaya
it works!  👍 
Notifications
You’re not receiving notifications from this thread.