By judyngai1228
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!
@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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.