6

I wrote a node project and upload the code to github. The project is running form a raspberry pi. I used npm forever-service to run the app on boot.

Is there a way when I change the github code (project code) the project automatically updates itself and restarts the app or reboots the pi and starts the app with the new updated code?

IPS Brar
  • 346
  • 1
  • 14
Wouter
  • 427
  • 1
  • 4
  • 15
  • 1
    You need ```webhooks``` check out this post http://thesociablegeek.com/node/github-continuous-deployment-to-a-raspberry-pi/ is very helpful – julian salas Apr 22 '17 at 15:25
  • For node you can use https://www.npmjs.com/package/node-webhooks – julian salas Apr 22 '17 at 15:30
  • 1
    Does this answer your question? [How to make a self-updating node package?](https://stackoverflow.com/questions/35485250/how-to-make-a-self-updating-node-package) – Luca Fagioli May 11 '21 at 13:49

0 Answers0