vagrant - How to stop foreman logging to stdout? -


i'm using foreman in a vagrant vm run gunicorn. have foreman start last item when provision vm, leaves logging stdout. i'd prefer log log file , release terminal me. then, should want see foreman logs, can tail file.

i feel must have missed something, doesn't sound difficult thing, i'm stumped. have cancel, twice, out of foreman logging, messy end provisioning!

the entries in procfile commands run , can tinker them same way on command line.

so redirect of stdout unicorn process /dev/null

or redirect output process 2>&1 like:

web: gunicorn myproject.wsgi 2>&1 

in order foreman release terminal you'll need run in background with:

foreman & 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -