Ruby On Rails 初心者です。devise token auth にてログインAPIを作ったのですが、ローカルにて rails s -b 0.0.0.0 で起動してサインアップ・サインインを行うと正常に動作するのですが、
Unicorn と Nginx にてグローバルにて起動した場合に 504 Gateway Time-Out となってしまい、原因が全く掴めていません。
nginx のエラーログは以下のとおりです。
2017/08/22 14:22:20 [error] 15727#15727: *2835 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 111.22.333.444, server: host.example.com, request: "POST /v1/auth/sign_in HTTP/1.1", upstream: "http://unix:/var/run/unicorn/unicorn_app-api.sock/api/v1/auth/sign_in", host: "host.example.com", referrer: "http://localhost:8100/"
他に必要な情報等あればご指摘ください。
よろしくお願いします。
あなたの回答
tips
プレビュー