mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 13:17:55 -05:00
update alembic path and readme
This commit is contained in:
35
README.md
35
README.md
@@ -120,37 +120,10 @@ After you have Python and (optionally) PostgreSQL installed, follow these steps:
|
||||
|
||||
All generated code will be stored in the folder `workspace` inside the folder named after the app name you enter upon starting the pilot.
|
||||
|
||||
### If you're upgrading from GPT Pilot v0.1
|
||||
|
||||
Assuming you already have the git repository with an earlier version:
|
||||
|
||||
1. `git pull` (update the repo)
|
||||
2. `source pilot-env/bin/activate` (or on Windows `pilot-env\Scripts\activate`) (activate the virtual environment)
|
||||
3. `pip install -r requirements.txt` (install the new dependencies)
|
||||
4. `python main.py --import-v0 pilot/gpt-pilot` (this should import your settings and existing projects)
|
||||
|
||||
This will create a new database `pythagora.db` and import all apps from the old database. For each app,
|
||||
it will import the start of the latest task you were working on.
|
||||
|
||||
To verify that the import was successful, you can run `python main.py --list` to see all the apps you have created,
|
||||
and check `config.json` to check the settings were correctly converted to the new config file format (and make
|
||||
any adjustments if needed).
|
||||
|
||||
# 🔎 [Examples](https://github.com/Pythagora-io/gpt-pilot/wiki/Apps-created-with-GPT-Pilot)
|
||||
|
||||
[Click here](https://github.com/Pythagora-io/gpt-pilot/wiki/Apps-created-with-GPT-Pilot) to see all example apps created with GPT Pilot.
|
||||
|
||||
## 🐳 How to start gpt-pilot in docker?
|
||||
1. `git clone https://github.com/Pythagora-io/gpt-pilot.git` (clone the repo)
|
||||
2. Update the `docker-compose.yml` environment variables, which can be done via `docker compose config`. If you wish to use a local model, please go to [https://localai.io/basics/getting_started/](https://localai.io/basics/getting_started/).
|
||||
3. By default, GPT Pilot will read & write to `~/gpt-pilot-workspace` on your machine, you can also edit this in `docker-compose.yml`
|
||||
4. run `docker compose build`. this will build a gpt-pilot container for you.
|
||||
5. run `docker compose up`.
|
||||
6. access the web terminal on `port 7681`
|
||||
7. `python main.py` (start GPT Pilot)
|
||||
|
||||
This will start two containers, one being a new image built by the `Dockerfile` and a Postgres database. The new image also has [ttyd](https://github.com/tsl0922/ttyd) installed so that you can easily interact with gpt-pilot. Node is also installed on the image and port 3000 is exposed.
|
||||
|
||||
### PostgreSQL support
|
||||
|
||||
GPT Pilot uses built-in SQLite database by default. If you want to use the PostgreSQL database, you need to additional install `asyncpg` and `psycopg2` packages:
|
||||
@@ -193,14 +166,6 @@ python main.py --delete <app_id>
|
||||
|
||||
Delete project with the specified `app_id`. Warning: this cannot be undone!
|
||||
|
||||
### Import projects from v0.1
|
||||
|
||||
```bash
|
||||
python main.py --import-v0 <path>
|
||||
```
|
||||
|
||||
This will import projects from the old GPT Pilot v0.1 database. The path should be the path to the old GPT Pilot v0.1 database. For each project, it will import the start of the latest task you were working on. If the project was already imported, the import procedure will skip it (won't overwrite the project in the database).
|
||||
|
||||
### Other command-line options
|
||||
|
||||
There are several other command-line options that mostly support calling GPT Pilot from our VSCode extension. To see all the available options, use the `--help` flag:
|
||||
|
||||
Reference in New Issue
Block a user