I am running a Flask application on Ubuntu (using development server) with the following command line:
python myflaskapp.py > log.txt 2>&1 &
Afte