2

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

/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 と同じ

4

0 に答える 0