Capistrano with only 'sudo su - user' allowed

后端 未结 1 1500
死守一世寂寞
死守一世寂寞 2021-01-18 19:05

I\'m trying to do an uncomplicated Rails/Capistrano deployment to a remote server. Unfortunately I can\'t get sudo to run correctly out of the box. I need to

相关标签:
1条回答
  • 2021-01-18 19:11

    Is your user that you're trying to use added to the sudoers cfg on the server? Try this

    run "#{sudo :as => 'bob'} mkdir /path/to/dir"
    

    source

    0 讨论(0)
提交回复
热议问题