Access current git commit number from within Heroku app

前端 未结 3 1196
一向
一向 2021-01-14 03:55

I know the slug compiler removes the .git directory when creating a heroku slug, but is there any way to configure Heroku so that I can access the currently run

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-14 04:12

    In 2018 this is what you want: https://devcenter.heroku.com/articles/dyno-metadata

    heroku labs:enable runtime-dyno-metadata -a 
    

提交回复
热议问题