sebpiq / rhizome

Web server for participative art performances and installations.
GNU General Public License v3.0
164 stars 13 forks source link

Livereload #142

Open tatecarson opened 7 years ago

tatecarson commented 7 years ago

How would I use rhizome with a tool that does live reloading like forever or nodemon?

sebpiq commented 7 years ago

Hi @tatecarson ! What do you mean by livereload? Do you mean automatic restart if the server crash?

lisongx commented 7 years ago

Did you mean when you developing, the server automatic reload the code when your code change?

tatecarson commented 7 years ago

Yes, for development. It's a small thing but very helpful in development. I can't figure out how to get it to work because rhizome is called differently than other node applications. For instance, https://nodemon.io/ will watch your source for changes and restart the app. I'm just not sure how to use it with rhizome.

sebpiq commented 7 years ago

so the thing is rhizome is just a node.js file. You need to find where it gets installed on your system by running which rhizome and then you can run it through nodemon instead of calling it directly. For example :

nodemon /full/path/to/rhizome.js config

Tell me if it helps!