I used an alternative script to configure the server:
playbook.yml
Gemfile
And when I deployed my application to the 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
ruby-on-rails ubuntu nginx ansible puma
Meldum
source share