pip install -r requirements.txt
flask run -h 127.0.0.1 -p 3456
waitress-serve --host 0.0.0.0 --port 3456 app:app
query_result()
in app.pystore in irs.service file in /etc/systemd/system/
[Unit]
Description=irs service
StartLimitIntervalSec=300
StartLimitBurst=5
[Service]
WorkingDirectory=/root/irs
ExecStart=/root/irs/venv/bin/waitress-serve --host 0.0.0.0 --port 3456 app:app
Restart=always
RestartSec=1s
[Install]
WantedBy=multi-user.target
To start service
sudo systemctl enable irs.service
--> enable servicesudo systemctl start irs.service
--> start servicesudo systemctl status irs.service
--> monitor status of service