My app works fine in development on my laptop but in production on my
server I get "We're sorry, but something went wrong. We've been notified
about this issue and we'll take a look at it shortly."
I am using Rails 3, Ruby 1.8.7, Apache and passenger 2.2.15
I get the welcome aboard page in production if I just go to the domain
name but as soon as I want data I get the above error. There are no
messages in any logs for apache or rails. In production.rb I have
config.log_level = :debug
cap deploy:migrate works fine with this code in deploy.rb
namespace :deploy do
task :restart do
run "touch #{current_path}/tmp/restart.txt"
end
task :seed do
run "cd #{current_path}; rake db:seed RAILS_ENV=production"
end
end
How can I test that my app is running in the production environment on
my server?
If you look at the docs for belongs_to you will see that
belongs_to :model1, :model2 is not valid code. It is a pity that
rails is not able to give a better error message for this however. (I
found it by googling for your error message by the way. Google is
often much quicker than asking for help).