简体   繁体   English

耙资产:预编译

[英]Rake assets:precompile

C:\Sites\dtr-payroll>rake assets:precompile
rake aborted!
You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3. Using bundle exec may solve this.
C:/Sites/dtr-payroll/config/boot.rb:6:in `<top (required)>'
C:/Sites/dtr-payroll/config/application.rb:1:in `<top (required)>'
C:/Sites/dtr-payroll/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

you should first delete your Gemfile.lock file and bundle install again and then use 你应该首先删除你的Gemfile.lock文件并再次bundle install然后使用

rake assets:precompile

this is because you have activated rake 10.0.4 but in your Gemfile.lock file it is rake 10.0.3 so either you changed it or delete Gemfile.lock file. 这是因为你已经激活了rake 10.0.4,但在你的Gemfile.lock文件中它是rake 10.0.3所以要么你改了它,要么删除了Gemfile.lock文件。

Update your rake to 10.0.4 via 通过将您的佣金更新为10.0.4

bundle update rake

that would fix it 这会解决它

please try 请试试

bundle exec rake assets:precompile 捆绑exec rake资产:预编译

you should google it first 你应该先谷歌吧

你可以使用bundle exec rake资产:如果你更新数据库迁移就预编译,你可以使用:bundle exec rake db:migrate

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM