How to upload a Python Flet application to hosting?
I wrote a small translator program for tests and tried to upload it to the hosting, but I saw:
import flet as ft
def main(page: ft.Page):
page.title = "PyTranslate"
if name == 'main':
ft.app(target=main, view=ft.WEB_BROWSER)
Solution:Jump to solution
@Homanti - heres the flet template https://railway.app/template/gIcMS9
deploy this, it will then create a new repo in your github account so you can work on it...
15 Replies
Project ID:
N/A
Project ID:
N/A
Does your Railway service have any logs?
mind sending the very top of your build logs?
where is it?
flet is very similar to streamlet, I have a template for streamlet so I'll be making a template for flet now too, will update here once I have a procedure on how to get a flet app working on railway
Thanks Brody
Pastebin
[Region: us-west1]==============Using Nixpacks==============co - Pa...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
yeah nixpacks doesn't know what flet is, it's not going to be able to deploy it out of the box. will update soon
Wow thanks
Solution
@Homanti - heres the flet template https://railway.app/template/gIcMS9
deploy this, it will then create a new repo in your github account so you can work on it
Thanks a lot
no problem!