How can I run the multiple instance of the flask application in same web-server and same port?
Currently my flask application has following directory structure:
├── app
│ ├── __pycache__
│ ├── static
│ └── templates
├── instance
├── src
└── __pycache__
When application is begun using flask run, it runs on default port localhost:5000.
I am able to create a copy of the application and run on two ports 5000 & 5001, and it works fine.
However, I wanted to use only one server with an index.html file, where
localhost:5000/index.html has 2 links for redirection to localhost:5000/app1/ for app1 and localhost:5000/app2/ for app2
This is to avoid using of extra port.
I have currently cloned app to app2, however don't know to run two apps.(Below is the directory structure)
├── app
│ ├── __pycache__
│ ├── static
│ └── templates
├── app2
│ ├── __pycache__
│ ├── static
│ └── templates
├── instance
├── src
└── __pycache__
I have also checked at using Blueprints, but to my understanding they are meant to be used for different views.