Skip to content

v0.2.2

Choose a tag to compare

@romerramos romerramos released this 11 Oct 15:11
· 6 commits to main since this release
9a21331

bin/update is now the whole deploy for servers that run the app from a git checkout: backup, update, restart, health check and automatic rollback.

New

  • One-command deploys: with a server's own config/server.yml (copy config/server.example.yml), bin/update vX.Y.Z does all of this in order:
    • loads the app's environment
    • backs up the SQLite databases
    • checks out the release, installs gems, migrates and precompiles assets
    • restarts the app
    • waits until /up answers with the new version
  • Automatic rollback: if any step after the backup fails, it goes back to the previous release, restarts it and says where the backup is.
  • Version on /up: it now sends the running version in an X-App-Version header.

Improved

  • AGENTS.md → Deploying a release: one long-lived checkout per server, deployed only with bin/update.

Upgrade notes

  • No migrations, secrets or app settings.
  • Without config/server.yml, bin/update works as before: it updates the checkout, and you restart.
  • The first time you use the new deploy, the checkout still has the old bin/update. Run git fetch --tags && git checkout v0.2.2, then bin/update v0.2.2.