docs(readme): add quick production setup instructions
Build and Push to Registry / build (push) Successful in 7s
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:
@@ -8,7 +8,13 @@ icona di una presa della spina idk
|
||||
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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user