Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

puma: puma.sock No such file or directory

I used ansible script for server setup:

playbook.yml

Gemfile

And when I deployed my application to server, I see this in 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:/",

OS: Ubuntu 14.04.5

like image 323
Pavel Avatar asked Sep 30 '16 20:09

Pavel


1 Answers

Capfile:

require 'capistrano/puma'

it helped me

like image 68
Pavel Avatar answered Sep 28 '22 20:09

Pavel