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