Feb-26-2020, 07:04 AM
Hello,
I'm coming from a Java background and for most web projects I've used tomcat as a web server. The thing is that if I want to deploy an application, I just put it in the 'webapps' folder and then go to 'http:localhost:8080/<nameofapplication>' to run it.
While reading about WSGI f.e. with Gunicorn, the examples always use a specific port per application.
So my question is, is it always necessary for an application to run an a different port? So if I would have 2 applications, is it required to run them on 2 different ports? Isn't it also possible to use 1 port like with Tomcat(java) to run different apps?
thx
I'm coming from a Java background and for most web projects I've used tomcat as a web server. The thing is that if I want to deploy an application, I just put it in the 'webapps' folder and then go to 'http:localhost:8080/<nameofapplication>' to run it.
While reading about WSGI f.e. with Gunicorn, the examples always use a specific port per application.
So my question is, is it always necessary for an application to run an a different port? So if I would have 2 applications, is it required to run them on 2 different ports? Isn't it also possible to use 1 port like with Tomcat(java) to run different apps?
thx