Sviluppo locale (macOS)
Prerequisiti
- Docker Desktop
- Git
- Make
Quick start
bash
cp .env.example .env
# Modifica le password in .env
make setup
make up- URL: http://localhost:8001
- Site:
factory.local - User: Administrator
Comandi Makefile
| Comando | Descrizione |
|---|---|
make setup | Crea .env e verifica Docker |
make up | Avvia stack development |
make down | Ferma container |
make logs | Log Frappe |
make shell | Shell nel container |
make test | Lint + bench run-tests |
make migrate | bench migrate |
make backup | Backup DB + site files |
make restore | BACKUP_ID=... make restore |
make reset | CONFIRM_RESET=yes EZ_ENV=development make reset |
Bench nel container
bash
./scripts/bench-exec.sh bench --site factory.local console
./scripts/bench-exec.sh bench --site factory.local run-tests --app ez_factoryosTroubleshooting macOS
- Se Frappe risponde "site does not exist", usa
factory.localnegli/etc/hostso riavvia conmake down && make up. - Porte occupate: modifica
HTTP_PUBLISH_PORTeDB_PUBLISH_PORTin.env. - Reset completo dev:
CONFIRM_RESET=yes EZ_ENV=development make reset(rimuove volumi locali).