I am deploying a magento 2 site using the capistrano, When trying run cap staging deploy from tools/cap - I am getting firstly:

permission denied: cap

Then if I run with sudo:

cap: command not found

The thing can't work out is why it is not working when it appears to be installed properly, for example when running gem which capistrano it returns


and when I run gem list,

capistrano (3.11.0, 3.10.2)
capistrano-magento2 (0.8.2, 0.8.0)

I am wondering can anyone shed any light on whats going on? Have missed stage of configuration?

Any pointers most appreciated, thanks in advance!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.