-
-
Notifications
You must be signed in to change notification settings - Fork 355
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
Restart server when any code in server modified. #964
Comments
See the comment on top of the server file:
Please respect https://brillout.github.io/rules/. Thanks! |
That said, feel free to reach out if you believe it's related to VPS. And, actually, turns out this conversation is actually constructive: 65b5b1b. So thanks for reaching out. |
boilerplates still use node which not watching any changes and have to manually restart the server. |
i've tried using nodemon (^2.0.22) now, it does work great in react-js javascript boilerplate. i changed the server script in
|
You could just add this line in package.json complete scripts
and off course you need to have nodemon installed globally or add it as dependencies. |
Correct me if I'm wrong, but I think the problem with that is that it would restart the server even when a Vite file is being HMR'd. |
my script command does fine, only watching in server directory. anyway, any reason you dont want to use nodemon in boilerplate? if you dont want to do it, i could help you with that to save you some time |
Both my and BanDroid's example restarts the server when vite.config is changed. |
The problem with that then is that it won't watch dependencies outside of |
Description
i found this problem when modifying /server/index.js and adding some middleware. i had to close the server and run it again manually to be able seeing the changes.
i hope the boilerplate could use nodemon to watch the changes in server directory.
The text was updated successfully, but these errors were encountered: