Search code examples
ruby-on-railsubuntuproduction

How to check rails environment?


How check rails environment on Ubuntu Server?

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


Solution

  • One liner if you are in app root

    rails r "puts Rails.env"