Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean-up code that kills iisexpress server on windows #56

Open
vijetmahabaleshwar-okta opened this issue Feb 27, 2019 · 0 comments
Open
Labels

Comments

@vijetmahabaleshwar-okta
Copy link
Contributor

vijetmahabaleshwar-okta commented Feb 27, 2019

Clean up this code in index.js -

async function killProcessAtPort(port) {
  // For aspnet webforms samples, we use iisexpress that is started as system process
  // Using port to kill it doesn't work. Hence killing the process through name
  const iisexpress = await find('name', 'iisexpress.exe');

   if (iisexpress.length) {
    console.log('%s is running', iisexpress[0].name);
    execSync(`TASKKILL /F /IM ${iisexpress[0].name}`);

We need a better way to find out which iisexpress server is running the current login server, so that we don't kill all iisexpress servers.

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

No branches or pull requests

2 participants