chore: stop seeding during setup

This commit is contained in:
Jiayuan Zhang 2026-03-23 20:18:39 +08:00
parent fff7753a0c
commit e26a78c6e4
3 changed files with 11 additions and 9 deletions

View file

@ -22,7 +22,8 @@ Multica is an AI-native task management platform — like Linear, but with AI ag
```bash
# One-click setup & run
make setup # First-time: install deps, start DB, migrate, seed
make setup # First-time: install deps, start DB, migrate
make seed # Optional: load example data
make start # Start backend + frontend together
make stop # Stop everything
@ -40,7 +41,7 @@ make test # Go tests
make sqlc # Regenerate sqlc code
make migrate-up # Run database migrations
make migrate-down # Rollback migrations
make seed # Seed sample data
make seed # Seed example data
# Infrastructure
docker compose up -d # Start PostgreSQL

View file

@ -28,7 +28,7 @@ COMPOSE := docker compose --env-file $(ENV_FILE)
# ---------- One-click commands ----------
# First-time setup: install deps, start DB, run migrations, seed data
# First-time setup: install deps, start DB, run migrations
setup:
@echo "==> Using env file: $(ENV_FILE)"
@echo "==> Installing dependencies..."
@ -45,10 +45,8 @@ setup:
fi
@echo "==> Running migrations..."
cd server && go run ./cmd/migrate up
@echo "==> Seeding data..."
cd server && go run ./cmd/seed
@echo ""
@echo "✓ Setup complete! Run 'make start' to launch the app."
@echo "✓ Setup complete! Run 'make seed' if you want example data, then 'make start' to launch the app."
# Start all services (backend + frontend)
start:

View file

@ -18,10 +18,13 @@ pnpm install
# 2. Copy environment variables for the shared main environment
cp .env.example .env
# 3. One-time setup: start DB, run migrations, seed data
# 3. One-time setup: start DB and run migrations
make setup
# 4. Start backend + frontend
# 4. Optional: load example data
make seed
# 5. Start backend + frontend
make start
```
@ -88,7 +91,7 @@ This lets you keep `.env` connected to your main database while using `.env.work
| `docker compose down` | Stop PostgreSQL |
| `make migrate-up` | Run database migrations |
| `make migrate-down` | Rollback database migrations |
| `make seed` | Seed test data |
| `make seed` | Seed example data |
| `make worktree-env` | Generate an isolated `.env.worktree` for the current worktree |
| `make setup-main` / `make start-main` | Force use of the shared main `.env` |
| `make setup-worktree` / `make start-worktree` | Force use of isolated `.env.worktree` |