There is a systemd service file '/etc/systemd/system/flask-app.service:
[Unit]
Description="flask-app"
After=network.target
[Service]
User=root
WorkingDirectory=/root/FlaskApp/
Environment=/root/FlaskApp/flask-app/bin
ExecStart=/root/FlaskApp/flask-app/bin/flask run --host=0.0.0.0
Restart=on-failure
[Install]
WantedBy=multi-user.target
After sudo service flask-app start nothing happens, and the systemctl status does not provide any specific information.
However, when i run ExecStart command (/root/FlaskApp/flask-app/bin/flask run --host=0.0.0.0) through the console, the service starts.
P.S. I have exported varable FLASK_APP=flask-app.py
P.P.S. My flask app created at venv.