reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Replit can't normal use

Open kai648846760 opened this issue 1 year ago β€’ 1 comments

Using replit after the operation showed as follows

Python : 3.10.8 OS : Linux 1d430db8ba03 5.19.0-1027-gcp #29~22.04.1-Ubuntu SMP Thu Jun 22 05:13:17 UTC 2023 x86_64 GNU/Linux

image

kai648846760 avatar Jul 11 '23 15:07 kai648846760

Can you provide more information, such as what code and commands you're running

masenf avatar Jul 11 '23 23:07 masenf

Can you provide more information, such as what code and commands you're running

Thanks for reply. I think I know what the problem is, because reflex will open two ports, and the url provided by replit will randomly use one port, so this phenomenon is caused.

kai648846760 avatar Jul 15 '23 02:07 kai648846760

The workaround is to add to the.replit file [[ports]] localPort = 8000 externalPort = 3000

kai648846760 avatar Jul 16 '23 11:07 kai648846760