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. asked 07 Jul '12, 14:28 evan |
The general process applies for any site,
This applies for any website, running any framework. You may submit a support ticket if you would like us to look at your particular setup and make recommendations. answered 07 Jul '12, 19:16 johns Thank you, johns. That gave me enough information to get started. I think that I will also need to make changes to the configuration file that controls Rails' asset pipeline for Javascript files and stylesheets, but your answer cleared up how to handle the general process.
(08 Jul '12, 14:53)
evan
|