Previously and on my local machine, I've been using nodemon
which watches for changes made to a Node app and reloads it upon every change. But running the development server on my own machine is no longer feasible, so I've setup git for the app on a designated development server.
In advance, I prefer Sublime Text, so editing files on the development server via the terminal doesn't match my workflow, plus I like having a copy of everything on my local machine by default. I had also checked out rsync
, but I like the fine-grained version control that git offers.
So how can I edit files locally, git push
them to a development server, and have the Node app automatically reload after every push?