Hey, in this video, I want to give you some quick information regarding running multiple flask apps.
So in our case, we were simply running one app, but it could happen that you might create a second
app on a separate page on project.
And if you have this app running.
This app is running on port 5000.
That means you will not be able to run the other app because this port is occupied.
So all the flask apps run on port 5000 by default.
But you can change that.
So if you are running another app, you can specify the port arguments here in the last line.
So you can say port is equal to 501.
So give it a different port name from the default port, which is 5000.
So if I close this, if I run this app again, you will see that this app will run on port 5001.
So that will not clash with the other app which was running in Port 5000.
Note that if the apps are not running at the same time, it's not needed to.
Specify that port.
But just in case you run the apps at the same time and the second app will give you an error here,
it will say that the port is occupied.
Then you should remember that you should specify another port here to fix that error.
So that's what I wanted to tell you in this video.
See you in the next one.