How do I access my application logs?

I successfully deployed my ruby on rails app using a combination of this railscast and this tutorial .

but my app is not fully working,

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

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@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>