Heroku: Display Git Revision Hash and Timestamp in Views?

前端 未结 5 1794
盖世英雄少女心
盖世英雄少女心 2021-02-15 15:22

Let\'s say I have a Rails application deployed on Heroku. How can I display these pieces of information in my views?

  • The Git hash for the last revision
  • Th
5条回答
  •  孤城傲影
    2021-02-15 15:56

    The reason for this is because when your app is deployed onto the dyno grid to serve requests, it's compiled into a "slug" for fast deployment, and this slug doesn't have the git repo with it anymore.

提交回复
热议问题