Here is a little trick that can help you kill Tye when it doesn't respond to CTRL+C
#1619
Description
Sometimes one of my Tye configuration hangs and it doesn't react to my CTRL+C
s.
I noticed that the VSCode extension can still kill the application gracefully so I went into its source code and I found that it sends a DELETE
request to the control
endpoint.
I tested it on my own computer and it works nicely. I also created a simple Powershell cmdlet and added it to my $PROFILE
file
function Stop-Tye {
[CmdletBinding()]
param(
[Parameter(Mandatory = $false)]
$Port = 8000
)
Invoke-RestMethod -Method DELETE -Uri "http://localhost:$Port/api/v1/control"
}
For the Tye team (🤔), the only configuration where Tye hangs pretty regularly is the one that has some dirty tricks to launch an application hosted in IIS Express and a nodejs one.