0

Rail version - 4.2.3 When i try to start my app in production environment

rails s RAILS_ENV=production

I get this error :

/.rvm/gems/ruby-2.2.4/gems/railties-4.2.3/lib/rails/railtie.rb:196:in method_missing': undefined local variable or methoddevelopment'

Lakhani Aliraza
  • 435
  • 6
  • 8

2 Answers2

0

Try with:

RAILS_ENV=production rails s

or

rails s -e production
arieljuod
  • 15,460
  • 2
  • 25
  • 36
0

It occurred because of specifying wrong configuration in application.rb file

Lakhani Aliraza
  • 435
  • 6
  • 8