R
Railway11mo ago
Homanti

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)
No description
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...
Jump to solution
15 Replies
Percy
Percy11mo ago
Project ID: N/A
Percy
Percy11mo ago
Project ID: N/A
Adam
Adam11mo ago
Does your Railway service have any logs?
Homanti
HomantiOP11mo ago
No description
Adam
Adam11mo ago
mind sending the very top of your build logs?
Homanti
HomantiOP11mo ago
where is it?
Adam
Adam11mo ago
No description
Brody
Brody11mo ago
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
Adam
Adam11mo ago
Thanks Brody
Homanti
HomantiOP11mo ago
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.
Brody
Brody11mo ago
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
Homanti
HomantiOP11mo ago
Wow thanks
Solution
Brody
Brody11mo ago
@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
Homanti
HomantiOP11mo ago
Thanks a lot
Brody
Brody11mo ago
no problem!
Want results from more Discord servers?
Add your server