Can the version be exposed as an env variable?

Hi,
I’m using appsignal and they pick up on a deploy marker:

APP_REVISION is what they recommend, but as long as its there I can configure this manually.

Thanks,
Matt

You can actually set this to whatever you want as part of a deploy. Just run a command like this to use the git sha:

fly deploy -e APP_REVISION=$(git rev-parse --short HEAD)

The Fly app version is not very useful, and it can change without your VM even realizing it. But we use git revisions for a lot!

2 Likes