Heroku - Display hash of current commit in browser

前端 未结 9 1616
逝去的感伤
逝去的感伤 2020-12-02 14:45

I want to display the hash of the current git commit in the browser so that testing team (which does not have an access to run heruko commands) will be able to include the c

9条回答
  •  佛祖请我去吃肉
    2020-12-02 14:49

    There is an env var on Heroku containers called SOURCE_VERSION

    https://devcenter.heroku.com/articles/buildpack-api

    You can use that!

提交回复
热议问题