Skip to content

📝 Update Deta deployment tutorial for compatibility with Deta Space#6004

Merged
tiangolo merged 23 commits intofastapi:masterfrom
sudo-subg:master
May 8, 2023
Merged

📝 Update Deta deployment tutorial for compatibility with Deta Space#6004
tiangolo merged 23 commits intofastapi:masterfrom
sudo-subg:master

Conversation

@sudo-subg
Copy link
Contributor

No description provided.

@github-actions
Copy link
Contributor

@sudo-subg
Copy link
Contributor Author

WIP / draft

@Ryandaydev
Copy link

Are there any tests associated with this PR?

@sudo-subg
Copy link
Contributor Author

sudo-subg commented Feb 21, 2023

Are there any tests associated with this PR?
@Ryandaydev, no. Just an update on how to deploy a FastAPI app on Deta for compatibility with Space


@app.get("/items/{item_id}")
def read_item(item_id: int):
print({"item_id": item_id})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print({"item_id": item_id})
print({"item_id": item_id})

@github-actions
Copy link
Contributor

@app.get("/items/{item_id}")
def read_item(item_id: int):
async def read_item(item_id: int):
print({"item_id": item_id})

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would remove

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2023

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@tiangolo tiangolo changed the title Updating the Deta deployment tutorial for compatibility with Deta Space 📝 Update Deta deployment tutorial for compatibility with Deta Space May 8, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

@github-actions
Copy link
Contributor

github-actions bot commented May 8, 2023

@tiangolo
Copy link
Member

tiangolo commented May 8, 2023

Thanks @mikBighne98! 🍰

I tweaked the docs a bit, fixed a couple of things, updated a couple others for consistency, renamed the images to keep the old ones for the translations, and fixed the console outputs, this is ready! 🚀

@tiangolo tiangolo merged commit 724060d into fastapi:master May 8, 2023
@sudo-subg
Copy link
Contributor Author

Thank you for reviewing and merging the PR, @tiangolo 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants