1
00:00:00,580 --> 00:00:07,350
Hey, in this video, I want to give you some quick information regarding running multiple flask apps.

2
00:00:07,360 --> 00:00:14,800
So in our case, we were simply running one app, but it could happen that you might create a second

3
00:00:14,800 --> 00:00:17,800
app on a separate page on project.

4
00:00:17,920 --> 00:00:21,190
And if you have this app running.

5
00:00:22,570 --> 00:00:26,230
This app is running on port 5000.

6
00:00:26,890 --> 00:00:34,300
That means you will not be able to run the other app because this port is occupied.

7
00:00:34,720 --> 00:00:39,160
So all the flask apps run on port 5000 by default.

8
00:00:39,670 --> 00:00:41,410
But you can change that.

9
00:00:41,410 --> 00:00:49,600
So if you are running another app, you can specify the port arguments here in the last line.

10
00:00:49,840 --> 00:00:54,040
So you can say port is equal to 501.

11
00:00:54,040 --> 00:01:01,000
So give it a different port name from the default port, which is 5000.

12
00:01:01,960 --> 00:01:11,560
So if I close this, if I run this app again, you will see that this app will run on port 5001.

13
00:01:11,590 --> 00:01:17,440
So that will not clash with the other app which was running in Port 5000.

14
00:01:18,360 --> 00:01:24,060
Note that if the apps are not running at the same time, it's not needed to.

15
00:01:26,440 --> 00:01:27,900
Specify that port.

16
00:01:27,910 --> 00:01:34,360
But just in case you run the apps at the same time and the second app will give you an error here,

17
00:01:34,360 --> 00:01:36,400
it will say that the port is occupied.

18
00:01:36,460 --> 00:01:43,390
Then you should remember that you should specify another port here to fix that error.

19
00:01:43,780 --> 00:01:46,030
So that's what I wanted to tell you in this video.

20
00:01:46,060 --> 00:01:47,020
See you in the next one.

