Node.js OpsWorks Layer console logs

前端 未结 4 1193
暖寄归人
暖寄归人 2020-12-30 14:35

I have an Opsworks stack with a Node.js Layer and Node.js Application. I\'m wondering if anyone knows where on an ubuntu 14.04LTS instance the console logs from my applicati

4条回答
  •  Happy的楠姐
    2020-12-30 15:08

    I found the logs by doing the following (similar to @RyanWilcox's comment):

    1. I found my "current" deployment in /srv/www/{APP NAME}/current/
    2. listing files, I could see the log directory symlink (log should be symlinked to something like /srv/www/{APP NAME}/shared/log
    3. I ran into a permissions issue trying to cd to this directory, so I switched to the super user without a password using the command "sudo su" and then I could access the directory
    4. finally in the logs directory, I could see the nodejs console logs for STDERR and STDOUT

    ... and Bob's father is your father's father.

提交回复
热议问题