Add auto update
Site.js should always be the latest version (and have the latest security patches, etc.)
Especially if you have a production server that’s set to run long term. You should always be running latest Site.js.
By default, the server should check:
- on every launch
for updates and install the update if there is one.
- Check https://sitejs.org/version and compares it with currently-installed version
- (Temporary, until we implement 3 & 4) Inform person of the new version and show installation command.
- If there is a new version, download it and replace the binary in /usr/local/bin.
- If Site.js is enabled, disable the old version and enable the new version.
You should be able to turn this off using a flag. e.g.,
site @hostname --no-auto-update