I wrote a bash script to automate running my flask app:
#!/bin/bash
python3 -m venv venv
. venv/bin/activate
export FLASK_APP=my_app
export FLASK_ENV=development
flask run
I'd like to change it to flask run &
so that I can close the tab and still have it running, but I don't know how to stop the app if I've done it in this way. If I'm in a new tab and a new environment, what would I have to do to stop the app?