fix on linux
This commit is contained in:
parent
7f6949887c
commit
cd6959c673
@ -1,5 +1,5 @@
|
||||
{
|
||||
"Urls": "http://*:5000",
|
||||
"Urls": "http://*:5001",
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
|
||||
2
etc/publish.sh
Normal file → Executable file
2
etc/publish.sh
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
systemctl stop stock.service
|
||||
dotnet publish -c Release /opt/StockingData/src/StockingData.csproj -o /opt/StockingData/bin
|
||||
dotnet publish -c Release /opt/StockingData/src/StockingData/StockingData.csproj -o /opt/StockingData/bin
|
||||
systemctl start stock.service
|
||||
|
||||
@ -9,6 +9,7 @@ Environment="RDBNAME=stocks"
|
||||
Environment="RDBUSER=stocks"
|
||||
Environment="RDBPASS=stocks"
|
||||
ExecStart=/opt/StockingData/bin/StockingData
|
||||
ExecStop=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user