Capistrano 3 / Puma / Nginx / EC2无法正常工作

时间:2015-10-18 13:47:06

标签: ruby-on-rails-4 capistrano3 puma

我已经使用本教程将rails app部署到aws http://www.sitepoint.com/deploy-your-rails-app-to-aws/

但是当我尝试在浏览器中打开它时,nginx说

2015/10/18 13:05:00 [crit] 11945#0: *1 connect() to unix:/home/deploy/app_name/shared/tmp/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "http://unix:/home/deploy/app_name/shared/tmp/sockets/puma.sock:/", host: "localhost"

可能是什么问题?我已经重新检查了所有步骤 - 似乎一切都是正确的。

亲们,请您查看本教程并告诉我为什么会出现此错误?

谢谢!

1 个答案:

答案 0 :(得分:0)

问题发生在我的应用中。我的模型中使用了ElasticSearch,并且未安装弹性搜索。安装后,puma服务器启动成功