Python Browser View
Python Browser View
[Service]
User=root <!--to identify the username enter "whoami
"-->
Group=root <!--to identify the groupname enter "groups
"-->
WorkingDirectory=/path/to/your/app <!--exmaple path"var/www/html/temp"-->
ExecStart=/usr/bin/python3 /path/to/your/app/homecopy.py
Restart=always
Environment="FLASK_ENV=production" # Optional, to set the environment
[Install]
WantedBy=multi-user.target