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
+7 -1
View File
@@ -8,7 +8,13 @@ icona di una presa della spina idk
FastAPI + MongoDB + Redis FastAPI + MongoDB + Redis
``` ```
### Setup Dev ## Quick Setup (prod)
```bash
bash <(curl -s https://git.reloia.uk/reloia/thePlug/raw/branch/master/setup.sh)
```
## Setup Dev
imposta le variabili d'ambiente imposta le variabili d'ambiente
+10 -1
View File
@@ -48,7 +48,16 @@ source .venv/bin/activate
info "Syncing dependencies..." info "Syncing dependencies..."
uv sync 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" SESSION="theplug"
if tmux has-session -t "$SESSION" 2>/dev/null; then if tmux has-session -t "$SESSION" 2>/dev/null; then