您需要做的第一件事是通过SSH连接到OpenShift上的应用程序。如果您的应用名称为
awesome,请运行以下命令:
rhc ssh -a awesome
如果您忘记了应用程序的名称,请执行
rhc apps以查看您当前的应用程序。看到与
hereisthename @http://...或类似的行
.../~/git/hereisthename.git/。
通过SSH连接后,您可以使用以下
tail命令查看日志:
Tomcat 7(JBoss EWS 2.0)
tail -f -n 100 app-root/logs/jbossews.log
JBoss应用服务器7
tail -f -n 100 app-root/logs/jbossas.log



