I run into the same problem. add this in Capfile:
load 'deploy/assets' it will automatically do the deploy_assets task ( assets:precompile ) it will create a link under public directory assets -> $application_path/production/shared/assets/ for this to work you must use: gem 'rails' gem 'sprockets', :git => 'git://github.com/sstephenson/sprockets.git' and in environments/production.rb (otherwise it won't work ) #config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" config.assets.compile = true config.assets.digest = true Hope this helps. -- Aldo Nievas SATIO Internet Solutions www.satio.com.ar [email protected] M: 54 11 3487 4900 On Fri, Sep 9, 2011 at 5:38 PM, Jim Morris <[email protected]> wrote: > I experienced the same thing, although in my case it takes so long to > precompile on my server I don';t know if it ever finishes, waited 15 minutes > one time and it still had not finished. > > My solution was to precompile locally which takes a few seconds, then copy > the public/assets directory to my server. My cap task is... > > > > desc "deploy the precompiled assets" > task :deploy_assets, :except => { :no_release => true } do > run_locally("rake assets:clean && rake precompile") > upload("public/assets", "#{release_path}/public/assets", :via => > :scp, :recursive => true) > end > > Note I don't use the supplied assets:precompile due to a bug in it which > has not yet been released but the task has see the rails bug lists for that. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/ypHmqKHSrPIJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

