"Push To Run" is a proof-of-concept for hot code reload.
In this example "dolly.js" is loaded at application startup with an empty genoma object.
After each commit the "genoma.js" is reloaded and change the behaviour of client code.
- Browser loads application (http://pushtorun.herokuapp.com/ - look at browser console)
- When a change is made in repository and pushed to remote:
** Post commit hook hits server (can also be simulate this at http://pushtorun.herokuapp.com/hook/)
** Server notifies clients (via socket.io) of changes
** Browser reloads genoma.js and replaces dolly.js module genoma definition