[英]Why does Heroku continue deployement even if rake assets:precompile fails?
在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
因為即使資產編譯失敗,應用程序也能夠提供不涉及資產的請求,fx提供REST xml或json請求。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.