By default, if I start a background web server with 2 workers, I get 4 files to sift through when debugging. I would like to have a single file to search.
- gunicorn mybase.wsgi --workers 2:
background: true
stdout_gunicorn_12781.txt
stdout_gunicorn_12794.txt
stderr_gunicorn_12733.txt
stderr_gunicorn_12755.txt
If I try to redirect output of stdout and stderr to a single file like I do on my dev box, it fails to save any output in circleci:
circle.yml way doesn’t let me redirect output to custom file
- gunicorn mybase.wsgi --workers 2 > gunicorn_2_workers.txt 2>&1:
background: true
linux equivalent: (this command fails on circleci)
nohup gunicorn mybase.wsgi --workers 2 > gunicorn_2_workers.txt 2>&1 &
Anyone know how to redirect output to custom file when using background processes on circleci?