Rails - 无法在生产中预编译资产

时间:2013-05-14 21:07:19

标签: ruby-on-rails ruby amazon-ec2 assets

我将Rails应用程序部署到Amazon EC2,但在部署时我得到了

find: `/path/to/root/releases/20130514204835/public/stylesheets' (the same for javascripts and images)

然后我尝试在我的机器上预编译资产 - rake资产:预编译RAILS_ENV =生产捆绑exec rake资产:预编译RAILS_ENV =生产 - 但两者都在我遇到同样的错误:

/Users/adam/.rvm/rubies/ruby-1.9.3-p385/bin/ruby /Users/radek/.rvm/gems/ruby-1.9.3-p385/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
Access denied for user 'adam'@'localhost' (using password: YES)

对MySQL的访问应该没问题,资产有什么问题?

0 个答案:

没有答案