.kamal/hooks/post-deploy

It is possible to set a fallback value for a missing environment variable in bash.

I needed this because the KAMAL_DESTINATION environment variable may or may not be present in kamal deploy hooks.

# .kamal/hooks/post-deploy

bundle exec honeybadger deploy\
  --repository="https://github.com/danott/some-repo"\
  --revision="$KAMAL_VERSION"\
  --environment="${KAMAL_DESTINATION:-production}"