Why is sudo: bundle command not found?

后端 未结 4 1382
逝去的感伤
逝去的感伤 2020-12-14 22:14

Why is command \"bundle\" not found when using sudo:

[root@desktop gitlab]# sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
sudo: bundle: c         


        
4条回答
  •  清歌不尽
    2020-12-14 22:45

    Try :

    sudo -u git -H env PATH=$PATH && bundle exec rake gitlab:check RAILS_ENV=production

    to use the same PATH than current user.

提交回复
热议问题