Rewrite .NET solar API in rust
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
[Unit]
|
||||
Description=A .NET Core application providing the Solar REST API
|
||||
Description=The solar JSON API written in rust
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Environment=ASPNETCORE_URLS=http://*:3001
|
||||
WorkingDirectory=/home/pi
|
||||
ExecStart=/home/pi/.dotnet/dotnet /home/pi/bin/Solar.Api/Solar.Api.dll
|
||||
WorkingDirectory=/home/pi/project/home-data-collection-tools/target/release
|
||||
ExecStart=/home/pi/project/home-data-collection-tools/target/release/solar_api --database-path /home/pi/logs/solarpaneloutput.db --listening-port 3001
|
||||
Restart=on-abnormal
|
||||
RestartSec=30
|
||||
User=pi
|
||||
|
||||
Reference in New Issue
Block a user