Copy agent files to install directory.
- Service.Deploy.Agent.exe
- appsettings.json
- services.json
sc create ServiceDeployAgent binPath=(install directory)\Service.Deploy.Agent.exe start=auto
sc start ServiceDeployAgent
Edit services.json.
{
"Service": {
"Entry": [
{
"Name": "WebApp",
"Display": "Sample Service",
"Token": "xxxxxxxxxx",
"Directory": "D:\\WebApplication",
"BinPath": "D:\\WebApplication\\WebApplication.exe"
}
]
}
}
dotnet tool install --global Usa.Tool.ServiceDeploy
svcdeploy deploy -n WebApp -d D:\Project\WebApplication\bin\Release\net5.0\publish\ -u https://server:50443/ -t xxxxxxxxxx
svcdeploy config update -n WebApp -u https://server:50443/ -t xxxxxxxxxx
svcdeploy deploy -n WebApp -d D:\Project\WebApplication\bin\Release\net5.0\publish\