Report this

What is the reason for this report?

How do I access my application logs?

Posted on September 8, 2013

I successfully deployed my ruby on rails app using a combination of this railscast http://railscasts.com/episodes/335-deploying-to-a-vps and this tutorial https://coderwall.com/p/yz8cha .

but my app is not fully working,

How do I access my application logs? after ssh into my vps?



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!

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.

@kamaln7 how do I view the logs from the droplet? Or is this command for the droplet (didnt work for me)

The output log is found in <code>/home/username/apps/projectname/current/log/unicorn.log</code>. <br> <br>You can use the ‘tail’ command to output the last X lines of the file, or less to read all of it (type <code>G</code> (yes, it has to be uppercase) to reach the end of the file after running less. <br> <br><pre>#output the last few lines <br>tail /home/username/apps/projectname/current/log/unicorn.log <br>#output the last 40 lines <br>tail -40 /home/username/apps/projectname/current/log/unicorn.log <br> <br>#read using less <br>less /home/username/apps/projectname/current/log/unicorn.log</pre>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.