The best way to review your application logs for errors remotely is to run rhc tail <yourappName>
from your client machine (where the rhc client tools are installed). That will give you a quick view of the the latest log entries.
To get to the entire log, you'll want to ssh onto the gear(s) on which the language framework/cartridge is installed using rhc ssh <yourappname>
and take a look in your $OPENSHIFT_LOG_DIR
. So for example here's how I would ssh into my gear and check my logs.
- SSH into my gear
rhc ssh <myappname>
- Change directory into my logs directory
cd $OPENSHIFT_LOG_DIR
- List the contents
ls
- View the contents
vim exampleapp.log
Read full article from How do I troubleshoot application issues using the logs? | OpenShift by Red Hat
No comments:
Post a Comment