Question

I just made a new rails app running on capistrano v3 and everything is fine.

Then I tried to deploy an old app running on capistrano v2 and capistrano doesn't work and can't load:

cap aborted! cannot load such file -- deploy blabla/Capfile:1:inload' blabla/Capfile:1:in <top (required)>'

running bundle show capistrano returns capistrano v2 but running which gem capistrano returns capistrano v3.

How can i keep it running the old capistrano v2?

Was it helpful?

Solution

Try prefixing with bundle exec, i.e.

bundle exec cap deploy
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top