|
I have a Rails 3 application on WebFaction, and would like to use a separate Static-only application to serve its media to save memory and time. I found a WebFaction guide for doing this with Django, but not with Rails. I was able to create a Static-only application and update the Rails site’s website record to use the static media application, based on the first three steps of those Django instructions. However, I am not sure how to configure Rails correctly to make use of the files that I copied into my Static-only application. I would appreciate advice on how to configure Rails to use the Static-only application as the source of images that it would otherwise look for in the Rails application's public folder. I would also like images that users upload, such as avatars, to be stored in the Static-only application's folder. How can I also serve stylesheets and Javascript files from the Static-only application? Thank you. |