Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] Flowise ui and server tries to use same port

Open emrahtoy opened this issue 2 years ago • 1 comments

Describe the bug Flowise ui and server tries to use same port.

To Reproduce yarn dev

Expected behavior Both module should have their own port to work on

Additional context To solve the issue package/ui should have .env file with a different port as it shown in example .env.example file.

Note Changing server's port doesn't work as flowise expect it working on the port 3000

emrahtoy avatar Jun 16 '23 17:06 emrahtoy

Thats because by default ui react uses port 3000 And by default server uses port 3000 too

Thats why setting PORT on .env file to tell ui react to work on other port.

Do you have any other recommendations besides setting the PORT on .env file?

HenryHengZJ avatar Jun 17 '23 09:06 HenryHengZJ

We could set the different ports as default for the server or the UI ( by checking if there is a corresponding env variable in the system otherwise we could use the default ports like 8080 and 3001 ) or we could mention this in the documentation.

emrahtoy avatar Jun 18 '23 04:06 emrahtoy

Updated README for development build

HenryHengZJ avatar Jun 18 '23 13:06 HenryHengZJ