vade-cli 0.1.0

A command-line tool to deploy applications on Linux servers
1
2
3
4
5
6
7
8
9
10
11
12
13
# Make Caddy issue self-signed certificates (so the e2e test can make HTTPS requests)
from pyinfra import config
from pyinfra.operations import files

config.SUDO = True

files.block(
    name="Ensure local_certs global block is at the top of the Caddyfile",
    path="/etc/caddy/Caddyfile",
    content="{\n    local_certs\n}",
    before=True,
    after=True,
)