Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
This repository was 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

Description

@Kralizek

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 "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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions