我有2个SSH用户。 1安装了rbenv。
我已经看过关于部署到VPS的railscast,一些用户通过添加rbenv路径解决了这个问题。
set :default_environment, {
'PATH' => "/home/user_with_rbenv/.rbenv/shims:/home/user_with_rbenv/.rbenv/bin:$PATH"
}
我正在从.rbenv
文件夹中未包含/home/user
的用户进行部署。
我收到以下错误:
←[2;37mcommand finished in 117ms←[0m
failed: "env PATH=/home/user_with_rbenv/.rbenv/shims:/home/user_with_rbenv/.rbenv/bin:$PATH sh -
c 'cd -- /var/www/user_with_rbenv/releases/20130215102746 && bundle exec rake RAILS_ENV=
production RAILS_GROUPS=assets assets:precompile && cp -- /var/www/app/share
d/assets/manifest.yml /var/www/app/releases/20130215102746/assets_manifest.y
/home/user_with_rbenv/.rbenv
是rbenv的绝对路径
路径是:
$ $PATH
-sh: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: not found