我正在为我的rails项目使用webfection。当我运行deploy时,出现一些错误
SSHKit :: Runner :: ExecuteError:在主机web412.webfaction.com上执行时发生异常:cd / home / USER / webapps / PROHJECT / releases / 20140906100427&&捆绑安装 - 没有开发测试退出>状态:127 cd / home / unrealm / webapps / minecraft_rating / releases / 20140906100427&&捆绑安装 - 没有 开发测试stderr:bash:bundle:command not found
许多常见问题解答' s -
"设置default_env",ok,setted
set :default_env, {
'PATH' => "#{deploy_to}/bin:$PATH",
'GEM_HOME' => "#{deploy_to}/gems",
'RUBYLIB' => "#{deploy_to}/lib"
}
但它不起作用。
我的deploy.rb
namespace :deploy do
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
execute "#{deploy_to}/bin/restart"
end
end
task :bundle do
on roles(:app) do
execute "cd #{deploy_to} && bundle install --without development test"
end
end
after :publishing, :bundle
after :bundle, :restart
after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as:
# within release_path do
# execute :rake, 'cache:clear'
# end
end
end
end