mirror of
https://github.com/eggent-ai/eggent.git
synced 2026-03-07 10:03:19 +00:00
Add README section for updating Eggent
This commit is contained in:
34
README.md
34
README.md
@@ -138,6 +138,40 @@ npm run dev
|
||||
Open:
|
||||
- `http://localhost:3000`
|
||||
|
||||
## Updating Eggent
|
||||
|
||||
Before updating, back up:
|
||||
- `.env`
|
||||
- `data/`
|
||||
|
||||
If you installed with the one-command installer, run the same command again:
|
||||
|
||||
```bash
|
||||
curl -fsSL https://raw.githubusercontent.com/eggent-ai/eggent/main/scripts/install.sh | bash
|
||||
```
|
||||
|
||||
It will update the repo in `~/.eggent` (or `EGGENT_INSTALL_DIR` if customized), then rebuild and restart Docker deployment.
|
||||
|
||||
If you run Eggent from this repo with Docker:
|
||||
|
||||
```bash
|
||||
git pull --ff-only origin main
|
||||
npm run setup:docker
|
||||
```
|
||||
|
||||
If you run Eggent from this repo in local production mode (Node + npm):
|
||||
|
||||
```bash
|
||||
git pull --ff-only origin main
|
||||
npm run setup:local
|
||||
```
|
||||
|
||||
Quick post-update check:
|
||||
|
||||
```bash
|
||||
curl http://localhost:3000/api/health
|
||||
```
|
||||
|
||||
## Runtime Scripts
|
||||
|
||||
Defined in `package.json`:
|
||||
|
||||
Reference in New Issue
Block a user