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

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.

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.

Yes! That works! – John Bachir 2 days ago.

The chances are your custom tasks aren't using the rake variables, but instead hard-coding rake, here's an example: run("rake sass:compile") This is hard-coded, and won't care about your setting set :rake, 'rake --trace', here's the correct way: run("#{fetch(:rake)} sass:compile") Or, shorthand: run("#{rake} sass:compile") You can see this in practice in the Capistrano source code, in the one place that the default recipes actually invoke rake, in the migrations task: https://github. Com/capistrano/capistrano/blob/master/lib/capistrano/recipes/deploy. Rb#L387.

Oddly, migrations is where my deploy was failing and wehre I wanted to turn on --trace, so I guess that should have worked... – John Bachir Aug 16 at 21:45.

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.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions