How to check rails environment?

Alexander Shlenchack picture Alexander Shlenchack · Apr 27, 2013 · Viewed 46.6k times · Source

How check rails environment on Ubuntu Server?

command: Rails.env => command not found command: rails.env => command not found

Answer

Dino Reic picture Dino Reic · Dec 9, 2013

One liner if you are in app root

rails r "puts Rails.env"