How do I figure out what is wrong?

  • Posted on August 23, 2013
  • cjmiyakeAsked by cjmiyake

I followed the tutorial on concerning deployment to a VPS and got after a couple adjustments ran cap deploy:setup and cap deploy:cold without getting back any errors. I ssh’d into my droplet and restarted both Unicorn and Nginx but now i get a “can’t establish connection error.”

In the past I would use cpanel to take a look at the logs to see what error was being thrown…is there a way to check why my site is down?

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

I believe you have to edit your virtualhost’s config and unicorn’s config to point to /home/root/apps/contests/current <br> <br>Check unicorn’s error logs, do you see anything?

woo hoo! getting closer (i think) <br> <br>*** [err ::] /etc/init.d/unicorn_contests: 25: kill: <br>*** [err ::] No such process <br>*** [err ::] <br>*** [err ::] Couldn’t reload, starting ‘cd /home/rails/current/current; bundle exec unicorn -D -c /home/rails/current/current/config/unicorn.rb -E production’ instead <br>*** [err ::] master failed to start, check stderr log for details <br> command finished in 3978ms <br>failed: “/bin/bash --login -c ‘/etc/init.d/unicorn_contests restart’” on

@cj.miyake: You should deploy it to /home/rails instead, I’m not sure if that railscasts video covers that though.