title: 504 Gateway Time-out nginx, Rails 4 (Unicorn+Nginx)
body: <p>I was editing some of my code on my app and then decided to restart droplet from console with command <code>sudo shutdown -r now</code> .</p>
  
  <p>After that I checked my droplets IP and there was 
  <strong>504 Gateway Time-out 
  nginx</strong></p>
  
  <p>My nginx error log shows:</p>
  
  <pre><code>2015/04/19 16:36:08 [error] 2996#0: *13 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 212.93.105.37, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "www.technorent.lv"
  </code></pre>
  
  <p>Tried to <strong>restart / reload</strong> then <strong>shutdown and start</strong> again but without success.</p>
  
  <p>I definitively didn't change ANY Nginx config setup. Just my own Rails code.</p>
  
  <p>Any tips.? 
  Thanks</p>