Topobot 🐭 – CI FTW

Topobot is running on a Raspberry PI in my home, but I develop the code on my laptop, so I  had very simple workflow:

  • Work on the local dev on my laptop
  • Commit changes to master
  • Push changes to GitHub
  • SSH on the Raspberry PI
  • Pull master from Github
  • Restart the node server that runs Topobot

It was fine for a few days, but then I went for a better workflow.

I created a listener with Nginx, a very basic CGI to pull from GitHub and restart the node server. I configured a webhook on GitHub at voilà, CI like a boss.

Now I simply have to:

  • Work on the local dev on my laptop
  • Commit changes to master
  • Push changes to GitHub

The basic CI takes care of the rest and in a few seconds, a new Topobot is alive and kicking. There will be some Unit Testing at some point, maybe.


Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *