Skip to content

How to see server logs with pm2? #1003

Closed
@gilthonweapps

Description

@gilthonweapps

Hi,

I have installed parse-server locally on my Mac with MongoDB hosted on mLab for testing purpose.

My package.json is as follow:

{
  "name": "ParseServer",
  "version": "1.0.0",
  "description": "Home-made Parse Server",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "parse-server": "~2.1.0"
  },
  "scripts": {
    "start": "VERBOSE=1 node index.js"
  },
  "engines": {
    "node": ">=4.3"
  }
}

With "VERBOSE=1" and server launched with "node start index.js", I see all the queries in my terminal.

Now, if I launch the server with pm2 "pm2 start index.js -i 1 --name ParseServer" and then perform "pm2 logs", I don't see my queries.

So my question is, how can I see my queries when I use parse-server with pm2?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions