Skip to content

Commit

Permalink
Use FastAPI CLI for local setup (#497)
Browse files Browse the repository at this point in the history
### Description

Fixed #462 issue by using FastAPI CLI for local setup 

### Checklist

- [X] Created tests which fail without the change (if possible)
- [X] All tests passing
- [X] Extended the documentation, if necessary
  • Loading branch information
nitintecg authored Aug 6, 2024
1 parent ab3733e commit 6da8c60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"configurations": [
{
"name": "Hyperion",
"type": "python",
"type": "debugpy",
"request": "launch",
"module": "uvicorn",
"args": ["app.main:app", "--reload"],
"module": "fastapi_cli",
"args": ["dev", "app/main.py"],
"jinja": true,
"justMyCode": true
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ POSTGRES_DB = "hyperion"
## Launch the API

```bash
uvicorn app.main:app --reload
fastapi dev app/main.py
```

## Use Alembic migrations
Expand Down

0 comments on commit 6da8c60

Please sign in to comment.