The scenario is below:
- I SSH to server Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-96-generic x86_64) using putty with my credentials, from Windows
- Go to the directory where I put my source code
- start Flask app by running command python3 main.py logs are showing on terminal
- however, after I left my computer for some time the session is disconnected/ended.
- I know the app still running because another team still can test the app
- when I re-login to the server and go to the same directory I don't want to kill/restart the already running app because it would interfere with others doing the test
- How to see the running log so I would know what testers are doing and occasionally catch what's wrong
my main.py code:
if __name__ == "__main__":
ip = 'someip'
port = 9053
app.run(debug=True, host=os.getenv('IP', ip),
port=int(os.getenv('PORT', port)), threaded=True)