Skip to content

Instantly share code, notes, and snippets.

@isaquealves
Last active July 17, 2021 17:02
Show Gist options
  • Save isaquealves/f79230dd3eeeaee5f86942d86be347f6 to your computer and use it in GitHub Desktop.
Save isaquealves/f79230dd3eeeaee5f86942d86be347f6 to your computer and use it in GitHub Desktop.
Launch.json for FastAPI app
{
//Put this file inside .vscode directory at project root directory
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: FastAPI",
"type": "python",
"request": "launch",
"module": "uvicorn",
"args": [
"<app name or entrypoint>:app", // E.g: simpleapp.main:app
"--host=0.0.0.0",
"--port=8000",
"--log-level info",
"--reload"
],
"jinja": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment