Skip to content

Sviluppo locale (macOS)

Prerequisiti

  • Docker Desktop
  • Git
  • Make

Quick start

bash
cp .env.example .env
# Modifica le password in .env
make setup
make up

Comandi Makefile

ComandoDescrizione
make setupCrea .env e verifica Docker
make upAvvia stack development
make downFerma container
make logsLog Frappe
make shellShell nel container
make testLint + bench run-tests
make migratebench migrate
make backupBackup DB + site files
make restoreBACKUP_ID=... make restore
make resetCONFIRM_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_factoryos

Troubleshooting macOS

  • Se Frappe risponde "site does not exist", usa factory.local negli /etc/hosts o riavvia con make down && make up.
  • Porte occupate: modifica HTTP_PUBLISH_PORT e DB_PUBLISH_PORT in .env.
  • Reset completo dev: CONFIRM_RESET=yes EZ_ENV=development make reset (rimuove volumi locali).

Documentazione Ez FactoryOS — Ortobellina / EzBit