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

Allow reload from node server #38

Merged
merged 3 commits into from
Jun 5, 2016
Merged

Allow reload from node server #38

merged 3 commits into from
Jun 5, 2016

Conversation

appfeel
Copy link

@appfeel appfeel commented Apr 2, 2016

In this way, not only nodemon or supervisor can fire a reload event, but you can do:

reloadServer = reload(server, app, 1000);
watch.watchTree(__dirname + "/public", function (f, curr, prev) {
    console.log("Trying to reload...");
    reloadServer.reload();
});

Use case: let's say that you don't want the server to be restarted each time you change client files. In this way one can let nodemon skipping watching public files and let node server watching and reloading browser each time a change is detected in client files.

@alallier alallier merged commit 3148554 into alallier:master Jun 5, 2016
@alallier
Copy link
Owner

alallier commented Jun 5, 2016

Thank you for the pull request. I apologize it took so long won't happen again in the future!

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

Successfully merging this pull request may close these issues.

2 participants