Skip to content

tkindy/server-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published