liv a
liv a

Reputation: 3350

gunicorn - up and running but doesn't respond

I've been running my python server side with gunicorn for awhile and it worked perfectly

today it stopped returning results for some api calls, I pkill gunicorn and run with debug as python manage.py runserver 0.0.0.0:xxxx everything works fine

I have 2 questions:

  1. is there a way to create a log file of calls (like the output of runserver)
  2. is there a way to monitor my server?

Upvotes: 0

Views: 545

Answers (1)

Peter
Peter

Reputation: 1798

Use --log-file=- to output the errors in the command line (stderr), for example:

gunicorn base.wsgi -c config.conf --log-file=-

Upvotes: 1

Related Questions