forked from mirrors/thatmattlove-hyperglass
moved gunicorn multiproc dir to /tmp
This commit is contained in:
parent
6576ad3050
commit
753415894b
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ timeout = 60
|
|||
keepalive = 10
|
||||
|
||||
# Prometheus Multiprocessing directory, set as environment variable
|
||||
prometheus_multiproc_dir = ".prometheus_multiproc_dir"
|
||||
prometheus_multiproc_dir = "/tmp/prometheus_multiproc_dir"
|
||||
|
||||
|
||||
def on_starting(server): # pylint: disable=unused-argument
|
||||
|
|
@ -29,7 +29,7 @@ def on_starting(server): # pylint: disable=unused-argument
|
|||
print(1)
|
||||
except ImportError as error_exception:
|
||||
logger.error(f"Exception occurred:\n{error_exception}")
|
||||
#
|
||||
# Prometheus multiprocessing directory
|
||||
os.mkdir(prometheus_multiproc_dir)
|
||||
os.environ["prometheus_multiproc_dir"] = prometheus_multiproc_dir
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue