我正在使用 ruby 2.1.5 mri 和 mina (0.3.1)。rbenv 0.4.0-129-g7e0e85b 和 rbenvsudo 插件。但是无法正确部署,工头无法初始化捆绑器。这里有什么问题?
这是 mina 详细输出;
Mina 跟踪输出
-----> Exporting foreman procfile for app
$ cd /home/deployer/app/current ; sudo bundle exec foreman export upstart /etc/init -a app -u deployer -d /home/deployer/app/current -l /home/deployer/app/shared/log
bash: line 168: cd: /home/deployer/app/current: No such file or directory
sudo: bundle: command not found
! ERROR: Deploy failed.
-----> Cleaning up build
$ rm -rf "$build_path"
Unlinking current
$ rm -f "deploy.lock"
OK
/etc/sudoers
根 ALL=(ALL:ALL) ALL 部署者 ALL=(ALL:ALL) NOPASSWD:ALL
~/.bashrc
export PATH="$home/.rbenv/bin:$PATH" export PATH=~/.rbenv/shims:~/.rbenv/bin:"$PATH" eval "$(rbenv init -)" export RAILS_ENV=production
/root/.bashrc
与 ~/.bashrc 相同