Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Here is a little trick that can help you kill Tye when it doesn't respond to CTRL+C #1619

Open
Kralizek opened this issue Nov 7, 2023 · 0 comments

Comments

@Kralizek
Copy link

Kralizek commented Nov 7, 2023

Sometimes one of my Tye configuration hangs and it doesn't react to my CTRL+Cs.

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 "https://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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant