RoR application running on Mongrel but not production

This is my first hit in Ruby on Rails. Just deployed a very simple application for Heroku.

The fact is that my application runs flawlessly on mongrel development; However, when I start it with "mongrel_rails start -e production", I get the error message "We are sorry, but something went wrong."

In my life, I could not debug this. Heroku logs do not return anything, An exceptional add-on in Heroku does not return anything, and I cannot find mongrel.log on my Windows machine (when I start mongrel using: mongrel_rails start -e production -d "

I use Rails 2.3.5 and sqlite3 with a bunch to pack my gems.

I was told that the rails are probably not loading correctly. I cannot find another way to diagnose this. Any ideas?

Thanks
ANaimi

+3
source share
3 answers

Take a look at the /production.log log file. This should contain detailed information about what is happening. It usually contains a string that indicates the name of the gem to be installed.

Heroku does not use mongrel, so I assume that you are trying to understand why it does not work when you click on the hero.

I found that in most cases the problems with the hero were due to unidentified gems. Make sure you create gem manifest .

+1

. : tail -f *.log, (, development.log, , , .)

0

Not sure if this got the final answer, check your folder "% app_root% / config / environment /" and compare "development.rb" with "production.rb".

Make sure you have all the necessary settings in the production.rb file, maybe you missed something important.

0
source

Source: https://habr.com/ru/post/1730644/


All Articles