docs(readme): add quick production setup instructions
Build and Push to Registry / build (push) Successful in 7s

chore(setup): auto-create .env from example if missing and open in editor
This commit is contained in:
2026-04-13 00:56:45 +02:00 Unverified
parent 721f0d3122
commit 282cc42856
2 changed files with 17 additions and 2 deletions
+10 -1
View File
@@ -48,7 +48,16 @@ source .venv/bin/activate
info "Syncing dependencies..."
uv sync
# ── 6. run in tmux ────────────────────────────────────────────────────────────
# 6
if [[ ! -f .env ]]; then
warn ".env not found — copyinh from .env.example..."
cp .env.example .env || die ".env.example not found (impossibile)"
info "Opening the editor on the .env file (non vedrai mai questo messaggio)..."
${EDITOR:-nano} .env
fi
# ── - E DOPO C'È IL 7 !!!!. run in tmux ────────────────────────────────────────────────────────────
SESSION="theplug"
if tmux has-session -t "$SESSION" 2>/dev/null; then