diff --git a/README.md b/README.md index ec562978..0daa5352 100644 --- a/README.md +++ b/README.md @@ -125,10 +125,10 @@ Set these before you start it. **Settings → Setup** in the app says whether th Then start it: ```sh -bash scripts/start.sh +bun run dev ``` -and open . The script starts Postgres and each Bot's computer in Docker, applies the database migrations, and starts the API server, the routine worker, and the app. It checks that each one answers before it prints the next steps. `bash scripts/stop.sh` stops the app, the worker, the API server and the Docker services, and removes the Bot computers that belong to this install, the ones with its `COMPUTER_NAMESPACE`. It does not touch another install's. The database, each Bot's files and its browser profile are Docker volumes, so they stay. Add `--keep-computers` to leave the Bot computers running. +and open . `bun run dev` calls `scripts/start.sh`, which starts Postgres and each Bot's computer in Docker, applies the database migrations, and starts the API server, the routine worker, and the app. It checks that each one answers before it prints the next steps. `bash scripts/stop.sh` stops the app, the worker, the API server and the Docker services, and removes the Bot computers that belong to this install, the ones with its `COMPUTER_NAMESPACE`. It does not touch another install's. The database, each Bot's files and its browser profile are Docker volumes, so they stay. Add `--keep-computers` to leave the Bot computers running. If port 5432 is already taken on your machine, set `POSTGRES_PORT` in `.env` to a free port and change the port in `DATABASE_URL` to match. diff --git a/package.json b/package.json index 9dfaa267..00561ce2 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "description": "The open-source proactive agent, built on OpenBot. The platform lives in openbot/.", "scripts": { "postinstall": "bun install --cwd openbot", + "dev": "bun run start", "start": "bash scripts/start.sh", "stop": "bash scripts/stop.sh" }