How to deploy FastHTML on Railway.com
The new web dev power couple.
FastHTML is a new web framework for creating “modern web applications in pure Python”. It’s awesome.
Railway.com is new-ish platform that makes it very simple to deploy any kind of service, including FastHTML. It’s awesome.
To help people get started with deploying FastHTML apps to Railway faster, I created a railway template that let’s you deploy an app in a single click.
Here’s how to use the template.
Make a Railway Account
You’ll need a railway account if you don’t already have one.
Note: If you don’t have a Hobby or Pro railway account, you can still use a free trial account to determine if railway is right for you, but you’ll need to ensure you have a “Full” trial rather than a “Limited” trial account; see the difference here.
You can use your github or email account to create railway account.
Open the template
If you didn’t choose the template in the last step, follow this link or search for “fasthtml quickstart” in the template marketplace.
That’s it! You’re app will deploy automatically.