-1

I wanted to host the two different version (v1.0 and v1.1) of same React Application on Same Port(both version should run on 3000) of a linux server. What changes i require in order to do deployment in such a manner . I have created the react application with npm create-react-app.

3 Answers3

1

refer this, you will get an idea on ports... and it is not possible to do that

pavan kumar
  • 823
  • 6
  • 15
1

Two applications cannot run on the same port. Use nginx reverse proxy to redirect based on ports.

kooskoos
  • 4,622
  • 1
  • 12
  • 29
0

You can't run 2 applications on same port. Alternatives are:

  • Use nginx reverse proxy
  • use Iframes to load 2 different applications and access them using routes
Saqib Naseeb
  • 731
  • 1
  • 9
  • 21