Ruby on Rails Friday, September 18, 2015

Hey guys,

I wanted to test my rails app (Rails version 4.2.3) in the production
environment. So I prepared for this like followed:

i) I precompiled all of my assets, using rake assets:precompile

ii) In the production.rb I changed the line from
config.serve_static_files = false to
config.serve_static_files = true

After the preperation I started my Webrick server in production
envirnonment.

I executed my Rails app in the browser and there I got confused.

The content (in form of text) is present. Everything else is not.

No stylesheets, no images are shown. So everything looks like

black-text on white background. If i check the sourcecode inside the
browser

then I see that everything was loaded "successfully".


<link rel="stylesheet" media="all"
href="/assets/xyz/application-f850a9bf8f9ca4c8b52f430078d52a9a.css"
data-turbolinks-track="true" />

<script
src="/assets/xyz/application-be4f23807ebc81ad7ec898cdef9b3b65.js"
data-turbolinks-track="true"></script>


are present. Also the images are. But they dont affect anything.


I tried to find a solution on google.com but still after 2 hours of
research, i have not found anything that could help me.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/122249573c8ac3f865b2997e0a245829%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment