File tree Expand file tree Collapse file tree 3 files changed +13
-33
lines changed Expand file tree Collapse file tree 3 files changed +13
-33
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,6 @@ RUN pip install --no-cache-dir -r requirements.txt
7
7
8
8
COPY . .
9
9
10
- EXPOSE 8080
10
+ EXPOSE 8000
11
11
12
- CMD ["python" , "./ chat.py" ]
12
+ CMD ["python" , "chat.py" ]
Original file line number Diff line number Diff line change @@ -137,4 +137,4 @@ def on_message(message: Message):
137
137
),
138
138
)
139
139
140
- ft .app (port = 8550 , target = main , view = ft . WEB_BROWSER )
140
+ ft .app (main )
Original file line number Diff line number Diff line change @@ -5,36 +5,16 @@ kill_timeout = 5
5
5
processes = []
6
6
7
7
[env ]
8
- FLET_SERVER_PORT = " 8080"
9
- FLET_FORCE_WEB_VIEW = " true"
8
+ FLET_SESSION_TIMEOUT = " 60"
10
9
11
- [experimental ]
12
- allowed_public_ports = []
13
- auto_rollback = true
10
+ [http_service ]
11
+ internal_port = 8000
12
+ force_https = true
13
+ auto_stop_machines = true
14
+ auto_start_machines = true
15
+ min_machines_running = 0
14
16
15
- [[services ]]
16
- http_checks = []
17
- internal_port = 8080
18
- processes = [" app" ]
19
- protocol = " tcp"
20
- script_checks = []
21
-
22
- [services .concurrency ]
23
- hard_limit = 25
24
- soft_limit = 20
17
+ [http_service .concurrency ]
25
18
type = " connections"
26
-
27
- [[services .ports ]]
28
- force_https = true
29
- handlers = [" http" ]
30
- port = 80
31
-
32
- [[services .ports ]]
33
- handlers = [" tls" , " http" ]
34
- port = 443
35
-
36
- [[services .tcp_checks ]]
37
- grace_period = " 1s"
38
- interval = " 15s"
39
- restart_limit = 0
40
- timeout = " 2s"
19
+ soft_limit = 200
20
+ hard_limit = 250
You can’t perform that action at this time.
0 commit comments