ruby-on-rails – 为什么Heroku继续部署,即使rake资产:预编译失
发布时间:2020-12-17 02:01:52 所属栏目:百科 来源:网络整理
导读:在heroku上部署时,即使rake资产:precompiles失败,heroku也会继续部署. 为什么它是默认行为?有没有办法阻止heroku部署版本如果rake资产:预编译失败?谢谢. ----- Writing config/database.yml to read from DATABASE_URL ----- Preparing app for Rails as
在heroku上部署时,即使rake资产:precompiles失败,heroku也会继续部署.
为什么它是默认行为?有没有办法阻止heroku部署版本如果rake资产:预编译失败?谢谢. -----> Writing config/database.yml to read from DATABASE_URL -----> Preparing app for Rails asset pipeline Running: rake assets:precompile rake aborted! The line was indented 2 levels deeper than the previous line. (in /tmp/build_3tgkcip2wq2qv/app/assets/stylesheets/master.css.sass) Tasks: TOP => assets:precompile:primary (See full trace by running task with --trace) Precompiling assets failed,enabling runtime asset compilation Injecting rails31_enable_runtime_asset_compilation Please see this article for troubleshooting help: http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting -----> Rails plugin injection Injecting rails_log_stdout Injecting rails3_serve_static_assets -----> Discovering process types Procfile declares types -> (none) Default types for Ruby/Rails -> console,rake,web,worker -----> Compiled slug size is 52.9MB -----> Launching... done,v163 解决方法
因为即使资产编译失败,应用程序也能够处理不涉及资产的请求,f.x.提供REST xml或json请求.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容