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?
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
- Rails how to handle error and exceptions in model
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
- Rspec controller error expecting <“index”> but
- Factory_girl has_one relation with validates_prese
Try using
script/about
. Yourconfig/environment.rb
also has information about it.In your
config/environment.rb
you can specify which version of a particulargem
the application should use. However if you have multiple versions of agem
installed on your machine and you do not specify the version, the latest version of that gem will be used by the application.It will show all the matching gems e.g if some one do
Then th output will be as following
There probably is a more direct way to find this out, but if you load up a console and require a specific version like so:
It will tell you what version is already activated:
try this one for local gem :
If you use bundle:
Is probably what you can use:
In Gemfile , there should be the answer: