Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.06 KB

README.md

File metadata and controls

28 lines (19 loc) · 1.06 KB

server-admin

Tool for deploying new versions of some of my personal projects. Namely:

These projects are both single JVM services that simply require reverse-proxying. That's all this tool supports right now, but I hope to expand it to cover my other deploy needs.

This tool:

  • picks a free port,
  • starts up a new instance of the service in a screen session,
  • waits for it to become healthy (responds with a 200 to a request for the home page),
  • updates the Caddy configuration to reverse-proxy to the new instance, and
  • shuts down the old instance.

Usage

In the directory you run the tool from, there must be a file called caddy-config.edn. This file should contain the following information:

  • :name: the name of the app. Used to name the screen session and the logger in the Caddy config
  • :host: the domain the app is hosted on.

Then run the tool, passing the path to the new jar as an argument.