WebFaction
Community site: login faq
1
1

I have a Ruby on Rails app running - this works find only in development mode (nginx.conf server set to development). As soon as I switch this to production and restart the server I get an error on the webpage 'Error: We're sorry, but something went wrong.' and no other information.

How can I get production to work?

Thanks, Mike

asked 13 Jul '12, 08:45

Michael Spel...
1123
accept rate: 0%


Your app's logs should contain information about the error:

  • ~/webapps/app_name/rails_app/logs/
  • ~/webapps/app_name/nginx/logs/

Hope that helps!

permanent link

answered 13 Jul '12, 14:25

seanf
12.2k41836
accept rate: 37%

Thanks that did help! My problem was ActionView::Template::Error (application.css isn't precompiled).

After some googling I found the answer here - http://stackoverflow.com/questions/7275636/rails-3-1-0-actionviewtemplateerrror-application-css-isnt-precompiled

Basically in production things arnt being automatically precompiled so in config/environments/production.rb set the line config.assets.compile to true

(16 Jul '12, 05:06) Michael Spel...

Another thing you could do is run rake assets:precompile so your assets would be precompiled.

(16 Jul '12, 06:31) todork
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×186
×108
×108
×4
×3

question asked: 13 Jul '12, 08:45

question was seen: 7,037 times

last updated: 16 Jul '12, 06:31

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM