the error you are getting running rake assets:precompile locally is that you probably do npt have the production database setup locally and for some reason it tries to connect to the production database, I fixed this error by simply creating the production database locally.
I can't help with the other problem as I am still trying to figure out how to deploy these assets, they really seem more trouble than they are worth ;)
to the deploy.rb file, pretty standard Capistrano stuff. Never had any problem with the RCs!after('deploy:symlink', 'assets:precompile')
namespace :assets dodesc 'Precompile assets'task :precompile, :roles => :app dorun "cd #{current_path}; RAILS_ENV=#{stage} rake assets:precompile"endend
Hi, I've just updated my app to the final 3.1 release and deployed it to the staging server after running tests but there is a problem with the precompiled assets. The precompiled assets are all in the public directory, like they were before, Capistrano doesn't throw any error and running `rake assets:precompile` in the current directory work as expected. But the asset pipeline helpers (javascript_include_tag and stylesheet_link_tag) act like if the assets weren't precompiled. This application have been developed from scratch for 3.1 and deployement worked flawlessly using the release candidates (last used was rc5), I've downgraded to our last Gemfile.lock and everything work. So, has something changed since rc5 or is this a bug.
Also, when trying the run `rake assets:precompile` on my local machine I get this very strange error message: "Access denied for user 'root'@'localhost' (using password: YES)". Running rake with `--trace` doesn't give me any more information. I find this error non-sensical, as nothing in this project is owned by the root user. Again downgrading to rc5 make everything work as normal.
--
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/-/PySXZDLSDdMJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.