"Something went wrong" when deployed to Rails through capistrano

The deployment was successful, but on every page there is an error saying "something went wrong."

No errors were found in the NGinx log file, or in the production log. In fact, the production log file is not even written after deployment.

I am using Rails 3.2 and the asset pipeline. The only thing I found that this fix is ​​to log in to the server, run "rails s -e production", go to the official website www.myapp.com{000, and then it will load normally. After that, the application works great through the passenger.

It is as if something is not being configured, which, by running webrick on production only to load one page, fixes it. I have no idea what it can be!

Any help?

+4
source share
1 answer

It seems that you have configured your production server incorrectly. You need to specify port 80 for your application (directory, etc.). Please show us how you set up the passenger? Further details will help identify the problem.

0
source

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


All Articles