【发布时间】:2014-06-03 21:42:13
【问题描述】:
我正在尝试为 DigitalOcean 上的 rails 应用程序配置 nginx。当我打开我的 IP 时,我看到 BAD GATEWAY (502) 消息。
在日志中是
2014/06/03 09:58:57 [crit] 28612#0: *1 connect() to unix:/tmp/unicorn.myproject-staging.sock failed (2: No such file or directory) while connecting to upstream, client: 81.161.64.26, server: , request: "GET / HTTP/1.1", upstream: "http://unix:/tmp/unicorn.myproject-staging.sock:/500.html", host: "my_ip"
错误消息是什么意思,我该如何解决?
谢谢
编辑:
应用部署在这里:
/home/deployer/apps/myproject-staging
【问题讨论】:
-
您是如何启动您的应用程序/服务器的?看起来它并没有在那只袜子上运行。
-
你的独角兽跑了吗?
标签: ruby-on-rails ruby unix nginx unicorn