ruby-on-rails – assets:预编译到达文件的末尾

ruby-on-rails – assets:预编译到达文件的末尾,第1张

概述我正在尝试运行资产:在我的Rails 4应用程序上预编译,但我一直在: rake aborted!end of file reached 在capistrano抱怨同样的错误后,我在我的VPS上运行此命令.有任何想法吗? [deploy@skateboxes skateboxes]$cd /var/www/skateboxes/releases/20131024204508 && ( RAILS 我正在尝试运行资产:在我的Rails 4应用程序上预编译,但我一直在:

rake aborted!end of file reached

在cAPIstrano抱怨同样的错误后,我在我的VPS上运行此命令.有任何想法吗?

[deploy@skateBoxes skateBoxes]$cd /var/www/skateBoxes/releases/20131024204508 && ( RAILS_ENV=production /usr/local/rvm/bin/skateBoxes_rake assets:precompile )rake aborted!end of file reached/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/core_ext/marshal.rb:6:in `load'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/core_ext/marshal.rb:6:in `load_with_autoloading'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/cache/file_store.rb:19:in `block in []'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/cache/file_store.rb:19:in `open'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/cache/file_store.rb:19:in `open'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/cache/file_store.rb:19:in `[]'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/caching.rb:14:in `cache_get'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/caching.rb:84:in `cache_get_hash'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/caching.rb:54:in `cache_asset'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/index.rb:93:in `build_asset'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/base.rb:287:in `find_asset'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/index.rb:61:in `find_asset'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:211:in `block in find_asset'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:257:in `benchmark'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:210:in `find_asset'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:119:in `block in compile'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:118:in `each'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/manifest.rb:118:in `compile'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/rake/sprocketstask.rb:146:in `with_logger'/var/www/skateBoxes/shared/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define'Tasks: top => assets:precompile(See full trace by running task with --trace)
解决方法 当缓存目录中有一个无法解组的文件时,可能会发生这种情况.尝试清理临时目录.

https://github.com/sstephenson/sprockets/blob/v2.10.0/lib/sprockets/cache/file_store.rb

总结

以上是内存溢出为你收集整理的ruby-on-rails – assets:预编译到达文件的末尾全部内容,希望文章能够帮你解决ruby-on-rails – assets:预编译到达文件的末尾所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1252643.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-07
下一篇 2022-06-07

发表评论

登录后才能评论

评论列表(0条)

保存