【发布时间】:2013-10-29 14:32:52
【问题描述】:
我正在尝试使用 Capistrano 3.0 / Thin / NGINX 部署到 Raspberry Pi 我已经让它工作了,但是在我的重启块中我有
namespace :deploy do
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
execute '/etc/init.d/thin restart'
execute 'sudo /etc/init.d/nginx restart'
end
end
end
我很满意
INFO [128fb9a3] Running /etc/init.d/thin restart on raspberrypi.local
DEBUG [128fb9a3] Command: /etc/init.d/thin restart
DEBUG [128fb9a3] /usr/bin/env:
DEBUG [128fb9a3] ruby_executable_hooks
DEBUG [128fb9a3] : No such file or directory
DEBUG [128fb9a3]
我尝试了here 的答案,但没有成功。
如果我通过 SSH 连接到 PI 并以 root 身份运行它们,这些命令似乎可以正常工作。
我应该提一下,我经常使用本教程:http://creativepsyco.github.io/blog/2013/04/10/deploying-rails-on-nginx-and-thin/ 进行设置
【问题讨论】:
标签: nginx capistrano raspberry-pi thin