嘿,当我尝试运行cap production deploy时,我收到了这个错误:
DEBUG [4a0b95e5] bash: /etc/init.d/unicorn_prosesssus: No such file or directory
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as deploy@: /etc/init.d/unicorn_prosesssus restart exit status: 127
/etc/init.d/unicorn_prosesssus restart stdout: Nothing written
/etc/init.d/unicorn_prosesssus restart stderr: bash: /etc/init.d/unicorn_prosesssus: No such file or directory
对我来说看起来问题是它无法找到unicorn_prosessus,但是当我去服务器上的路径时我清楚地看到它,所以我知道它就在那里。我的应用程序似乎也出现了,所以我只是想知道这个错误是什么,以及我如何解决它?
我忘了重启一些东西吗?
我的unicorn init配置取自:
http://www.rubytreesoftware.com/resources/ruby-on-rails-41-ubuntu-1404-server-configuration