我使用ansible脚本进行服务器设置:

playbook.yml

Gemfile

当我将应用程序部署到服务器时,我在nginx/error.log中看到了这一点:

2016/09/30 20:43:07 [crit] 1352#0: *1 connect() to unix:/home/deploy/applications/spa_backend/shared/tmp/sockets/puma.sock failed (2: No such file or directory) while connecting to upstream, client: *, server: , request: "GET / HTTP/1.1", upstream: "http://unix:/home/deploy/applications/spa_backend/shared/tmp/sockets/puma.sock:/",

作业系统:Ubuntu 14.04.5

最佳答案

上限文件:
require 'capistrano/puma'
它帮助了我

关于ruby-on-rails - puma:puma.sock没有这样的文件或目录,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39799926/

10-16 17:27