S
S
Sergey Bondarenko2019-07-08 22:21:42
linux
Sergey Bondarenko, 2019-07-08 22:21:42

start.sh for flask(python)?

Good evening, I have a flask application in the form of a package, and I'm fed up with writing functions to the terminal every time before launching:

source venv/bin/activate
export FLASK_APP=app
export FLASK_DEBUG=true
pip install -e .
flask run

So, how to make the launch beautiful, "in one click", I heard about start.sh, but since there is still little experience in using Linux, I ask for your help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Official account of the Timeweb team, 2020-06-10
@timeweb_team

Answer from Timeweb support You
need to create a bash script.
Add all commands to it (for example, start.sh ) (add shebang #!/bin/bash to the beginning) and give permissions to it:
chmod +x ./start.sh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question