Add init.sh and deploy.sh scripts (#2)

This commit is contained in:
link2xt
2023-10-13 14:14:02 +00:00
committed by GitHub
parent 9da375cf5c
commit 4b82fd6f77
2 changed files with 7 additions and 0 deletions

3
scripts/deploy.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
export CHATMAIL_DOMAIN="${1:-c1.testrun.org}"
venv/bin/pyinfra --ssh-user root "$CHATMAIL_DOMAIN" deploy.py

4
scripts/init.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
python3 -m venv venv
venv/bin/pip install pyinfra
venv/bin/pip install -e .