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

debounce server restart at 100ms when watching server files #1

Merged
merged 0 commits into from
Nov 25, 2014
Merged

debounce server restart at 100ms when watching server files #1

merged 0 commits into from
Nov 25, 2014

Conversation

EndangeredMassa
Copy link

Updates based on comments on PR#2265 to ember-cli itself.

this.serverRestartDelayTime = 100;

var serverRestartDelayTime = 100;
this.scheduleServerRestart = _.debounce(this.restartHttpServer, this.serverRestartDelayTime);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.serverRestartDelayTime should be serverRestartDelayTime

@csantero
Copy link
Owner

@EndangeredMassa Thanks for working on this. Unfortunately the debounce test is failing now. I don't have time right now to look into it though. When you get your environment up and running again, don't forget to run the smoke test manually, which isn't part of npm test.

@EndangeredMassa
Copy link
Author

Sure thing. I'll spend more time on this tomorrow.

@EndangeredMassa
Copy link
Author

I rebased my branch on master, but now this PR looks like a mess. If you @csantero rebase this on master, will that sync it back up?

@csantero csantero merged commit 32e46a4 into csantero:restart-server Nov 25, 2014
@csantero
Copy link
Owner

@EndangeredMassa I reset my branch to yours and force pushed. Looks good, thanks.

@EndangeredMassa EndangeredMassa deleted the smassa-restart-server branch November 25, 2014 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants