AnswerDotAI / fh-deploy

Deployment examples for FastHTML
Apache License 2.0
29 stars 13 forks source link

Updates Modal deployment example #14

Closed charlesfrye closed 1 month ago

charlesfrye commented 1 month ago

Following up on a discussion on Twitter and updating the example for deployment on Modal.

I simplified the setup by putting the FastHTML app and the Modal app in the same file and separating the server and development requirements.

I added a section to the README on development on Modal -- hot-reloading servers and shells. This isn't super useful in an example this simple, but it starts to matter once you split out local and development/prod secrets, environments, and resources (accelerators, HTTPS/IPs, etc).

I also added a bunch of comments to the code and additional color to the README.

jph00 commented 1 month ago

Very nice :)