How can I run rake with --trace within capistrano?

后端 未结 2 1405
失恋的感觉
失恋的感觉 2020-12-31 18:53

I want capistrano to invoke rake with --trace so I can figure out why it\'s failing. How do I do this? set :rake \'rake --trace\' doesn\'t work.

2条回答
  •  粉色の甜心
    2020-12-31 19:20

    The best way I found is:

    set :rake, "#{rake} --trace"
    

    This way you don't overwrite the rake variable.

    For example if you use bundler this is set before to:

    "bundle exec rake"

    and after to:

    "bundle exec rake --trace"

提交回复
热议问题