Saturday, October 12, 2013

[Rails] Assets not loading in production

Hello,

(Rails 4, Ruby 2)

I am trying to deploy my first rails app in a production environment, but cannot get the assets to load. The site is hosted on Webfaction, they advise to create a "static app" to serve the assets which I have done. But I don't understand how my rails app then knows about the static app.

At the moment, in production inside the head it prints out...

"/stylesheets/application.css"
"/javascripts/application.js"

But I want it to be "/assets/stylesheets/application.css".

Any help or advise would be most welcome.

--
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/1d480a40-e9d2-47b6-9d96-7215aa1ab0f5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate