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

Support run as daemon, and check for updates daily #1

Open
ysmood opened this issue Feb 7, 2015 · 7 comments
Open

Support run as daemon, and check for updates daily #1

ysmood opened this issue Feb 7, 2015 · 7 comments
Labels

Comments

@ysmood
Copy link

ysmood commented Feb 7, 2015

You may use the nokit.daemonize to achieve this function.

Such as npm-up --daemon --interval 1day /home/nokit /home/nobone ... It will check updates for /home/nokit and /home/nobone daily in the background.

@dracupid
Copy link
Owner

dracupid commented Feb 7, 2015

What happened then? Automatically update all of the dependencies?

@ysmood
Copy link
Author

ysmood commented Feb 7, 2015

Open a local site to report what's new, such as use the kit.xopen '127.0.0.1:8123' in the background, then the user decide what to do next, click the update button in the page to update or ignore it.

@dracupid
Copy link
Owner

dracupid commented Feb 7, 2015

Don't you think that a suddenly opened site may annoy or scare users? Any better suggestion for how to provide a friendly push service as a cli tool ?

@ysmood
Copy link
Author

ysmood commented Feb 7, 2015

Not possible with CLI. You may take advantage of the system notification api, but Windows, OSX, Linux work differently.
Besides, if the user don't like it, why he'd run it as daemon? It won't annoy him, because It's him types in the options, and it only jumps out once a day, and he can set the interval to 7 days, etc.

@dracupid
Copy link
Owner

dracupid commented Feb 7, 2015

I think that it's better to implement this by a plugin such as npm-up-daemon.

@dracupid
Copy link
Owner

https://github.com/mikaelbr/node-notifier may be a good choice to take advantage of the system notification api.

@ysmood
Copy link
Author

ysmood commented Apr 20, 2015

+1

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