我正在使用ruby 2.1.5 mri和mina(0.3.1)。 rbenv 0.4.0-129-g7e0e85b和rbenvsudo插件。 但是不能正确部署,工头无法初始化捆绑。这里有什么问题?
这是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
root ALL =(ALL:ALL)ALL 部署者ALL =(全部:全部)NOPASSWD:全部
export PATH =“$ home / .rbenv / bin:$ PATH” export PATH =〜/ .rbenv / shims:〜/ .rbenv / bin:“$ PATH” eval“$(rbenv init - )” export RAILS_ENV = production
与〜/ .bashrc相同