Answer the question
In order to leave comments, you need to log in
How to run a Flask application as a service on linux?
I made a config file
[Unit]
Description="flask app"
After=network.target
[Service]
User=kitscribe
WorkingDirectory=/home/kitscribe/Documents/projects/
Environment=/home/kitscribe/Documents/projects/venv/bin/
ExecStart=/home/kitscribe/Documents/projects/venv/bin/flask run /home/kitscribe/Documents/projects/todo/app.py
Restart=on-failure
[Install]
WantedBy=multi-user.target
Answer the question
In order to leave comments, you need to log in
Here is a detailed manual, go through the steps:
https://www.digitalocean.com/community/tutorials/h...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question