but if i close taht ssh connection, my gunicorn will still running and working correctly but im not able to see again that console, is there a way to access to that console whit out killing gunicorn process?
i want this in order to see the errors and warnings that my gunicorn will show me

Leave a Comment

Great question. There are many schools of thought and preferences on this. What I consider to be the more professional approach is to create a systemd script for starting it up and then having it write any output to a log file. That said, many people are content with the simplest answer:

screen -S gunicorn
[start command here]
control + a, then d

Then to return:

screen -r gunicorn

The “control +a, then d” part has you holding CTRL on your keyboard while pressing A, releasing A, then pressing D, and then releasing D. After releasing D, you can release CTRL. This is basically a saved shell session that persists beyond your SSH session, and can be recalled at any time.