How to tell which version of a gem a rails app is using

后端 未结 15 1145
生来不讨喜
生来不讨喜 2020-12-13 11:32

I\'m investigating a rails app - the prod server has two version of a specific gem installed, how can I tell which version the prod app is using?

15条回答
  •  一向
    一向 (楼主)
    2020-12-13 12:30

    Try using script/about. Your config/environment.rb also has information about it.

    In your config/environment.rb you can specify which version of a particular gem the application should use. However if you have multiple versions of a gem installed on your machine and you do not specify the version, the latest version of that gem will be used by the application.

提交回复
热议问题