Reconfiguring 1-Click Rails Install for New Project?

  • Posted August 8, 2013

Hey, everyone. I’ve searched everywhere and I’m still ripping my hair out over this issue. I’ve configured the following to point to my rails project (changed ‘/home/rails’ to ‘/home/project_name’)

/etc/default/unicorn /home/unicorn/unicorn.conf /etc/nginx/sites-enabled/default

I followed this up with a restart of the unicorn service, which was successful.

I’m missing something, but after a delete of ‘/home/rails’, I get a 504 error (Gateway Timeout) when I reload http://SERVER.IP.ADDRESS (which previously showed me the default Rails/public/index.html)

Note: I followed this tutorial and changed nothing but the paths to my rails project.

After “tail -f /home/unicorn/log/unicorn.log” It simply loops with my worker information, and two errors.

  1. reaped #<Process::Status: pid 4654 exit 1> worker=1
  2. You have already activated rack 1.5.2, but your Gemfile requires rack 1.4.5. Using bundle exec may solve this

What am I doing? Any help would be greatly appreciated.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi Quintan, <br>How did you solve this problem ? I am facing the same.

Weird. I never used unicorn. Try asking in <a href=“”>our IRC channel</a> – a lot of developers hang out there.

Using ‘service nginx restart’? <br> <br>Unfortunately, no. Still getting the 504.

Try restarting nginx – does that work?