Trying to follow flet.app #707
-
|
Hi, I'm trying to follow flet.app usage. When I see examples you give for production environments, I see that you do something like this: I find this confusing however, because when I run it locally, it starts a native window to interact with. If I run this inside a Docker environment, it just automatically knows not to? Does Flet know whether it's in dev mode or not without any parameters? How can I be sure it's in a production setting if I'm not passing anything? Cheers! -Ken |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
That |
Beta Was this translation helpful? Give feedback.
That
port=os.environ['PORT']is only needed becausePORTis a hardcoded variable passed by a hosting environment. Fletd (server) listening port can be set withFLET_SERVER_PORTenvironment variable. Let me know if I got your question right.