1 00:00:01,020 --> 00:00:08,460 Hello, friends, in this video, we shall try to explore what are the different deployment options 2 00:00:08,850 --> 00:00:10,590 for our flask application. 3 00:00:14,730 --> 00:00:22,080 The development activity, when you are in the in the process of developing the entire. 4 00:00:23,430 --> 00:00:30,210 Flask application, you always are invoking a development environment, you are running the development 5 00:00:30,210 --> 00:00:38,830 server, which is on the local machine when the application is to be placed on it, real web server. 6 00:00:39,420 --> 00:00:42,070 Then what are the different options that are available? 7 00:00:43,720 --> 00:00:50,170 So there are different options available are these are called as the homestead platforms, they offer 8 00:00:50,170 --> 00:00:55,820 free plan for their small applications, Heroku DOT Web faction. 9 00:00:56,740 --> 00:01:02,230 These are cloud platforms on whom the application can be deployed. 10 00:01:02,890 --> 00:01:09,460 And more often than not, these cloud platform have their own user interface using which their application 11 00:01:09,460 --> 00:01:10,520 can be deployed on it. 12 00:01:11,410 --> 00:01:18,120 It is also possible to deploy your application on the Google's cloud platform also. 13 00:01:18,610 --> 00:01:20,020 But then all these are. 14 00:01:21,440 --> 00:01:30,230 The cloud platforms, if you want to host the flask application on an Apache server. 15 00:01:31,260 --> 00:01:43,360 Then what do you do, you have to install a more WGI module on the top of the Apache HTP server. 16 00:01:44,190 --> 00:01:52,290 So this module provides the WSI compliant interface for hosting the Python based application on Apache 17 00:01:52,980 --> 00:02:06,360 to install an official release of the more WGI Go to the Pipe IPY by Python package indexed by using 18 00:02:06,360 --> 00:02:09,870 the well-known utility. 19 00:02:09,900 --> 00:02:12,950 So I install more WSI. 20 00:02:13,350 --> 00:02:16,770 This module will be installed in the Python distribution. 21 00:02:17,550 --> 00:02:24,030 Whether or not that particular module has been properly installed or not just issued its command from 22 00:02:24,030 --> 00:02:24,870 the command line. 23 00:02:25,260 --> 00:02:29,580 Say more WGI Express Start server. 24 00:02:30,690 --> 00:02:39,120 So as a result of this, this will start up the aperture more WGI, waga on your word number eight zero 25 00:02:39,120 --> 00:02:41,340 zero eight zero zero zero. 26 00:02:42,530 --> 00:02:48,470 You can verify that by visiting this link to close to zero zero zero. 27 00:02:49,620 --> 00:02:56,670 So it will confirm whether this more WGI has been properly installed or not then. 28 00:02:59,490 --> 00:03:04,530 There should be a corresponding WSI file corresponding to your application. 29 00:03:04,790 --> 00:03:08,220 I'm naming it as your about WGI. 30 00:03:08,760 --> 00:03:17,100 This file contains the code that this more WGI will execute every time when the application starts. 31 00:03:17,370 --> 00:03:23,080 Startup the startup called for your application object for most applications. 32 00:03:23,100 --> 00:03:23,950 This is enough. 33 00:03:24,540 --> 00:03:25,140 This line. 34 00:03:26,640 --> 00:03:33,540 From your app, you bought app as your application, so that line was present in this in this file. 35 00:03:33,900 --> 00:03:40,590 Make sure that your application, your app and all the libraries that are supporting your application, 36 00:03:41,080 --> 00:03:48,360 the supporting libraries and your application are in use are on the Python's Law part. 37 00:03:49,570 --> 00:03:58,540 So that they will be easily available for the execution and access, you need to tell them more WGI 38 00:03:58,540 --> 00:04:08,500 the location of your application, how to tell by providing this part of this debate in the HTP configuration 39 00:04:08,500 --> 00:04:09,720 file of your Apache's. 40 00:04:11,570 --> 00:04:20,540 Identify the presence of this virtual host segment of your HTP dot com and server name, whatever the 41 00:04:20,540 --> 00:04:20,900 name. 42 00:04:22,130 --> 00:04:24,970 This is the name of your WGI fight. 43 00:04:26,280 --> 00:04:30,150 Where is that file you give the pot and the other? 44 00:04:31,720 --> 00:04:37,060 Other is the location of your application, where where it is located. 45 00:04:37,450 --> 00:04:42,820 For example, Skogland, your directory is directly in which your application is placed. 46 00:04:43,210 --> 00:04:49,780 So this is the configuration that you are to do with your Apache's or. 47 00:04:50,930 --> 00:05:00,260 Provide a WRGA file and provide the location of the WHCA file, as well as your application application 48 00:05:00,260 --> 00:05:01,610 folder that must be provided. 49 00:05:05,240 --> 00:05:12,440 In addition to the more WGI, there is another alternative for deployment deployment with the help of 50 00:05:12,440 --> 00:05:13,730 the fast CGI. 51 00:05:14,650 --> 00:05:17,860 Far CGI is another deployment option. 52 00:05:19,730 --> 00:05:29,450 Which can be used on the Web servers like Unix, like as deeply and Turok, you need to create a flask 53 00:05:29,720 --> 00:05:31,170 CGI server file. 54 00:05:31,700 --> 00:05:36,470 Let us call as in case of the WGI, I'm calling it at your application. 55 00:05:36,480 --> 00:05:47,000 Not if CGI now in that when you start your application, if the name is equal to men instead of Eppy 56 00:05:47,000 --> 00:05:52,440 dot run, you are to say WGI server in the bracket. 57 00:05:52,440 --> 00:05:54,560 Then give the name of your application Dr.. 58 00:05:56,320 --> 00:06:05,670 Some of the VIPs, there were some of the older versions of Light, deeply near, explicitly to be mentioned, 59 00:06:05,740 --> 00:06:07,890 what the board number to be given. 60 00:06:08,260 --> 00:06:09,400 So, for example, here. 61 00:06:11,410 --> 00:06:19,820 WGI server, your name of the application buying the address is equal to the part to have CGI soccer 62 00:06:19,840 --> 00:06:22,880 to which it is going to listen, not one. 63 00:06:23,380 --> 00:06:31,510 This is the setting that you want to you have to perform while executing your application or deploying 64 00:06:31,510 --> 00:06:32,490 your application on it. 65 00:06:32,710 --> 00:06:33,790 Fast CGI. 66 00:06:38,670 --> 00:06:40,530 In order to configure Apache. 67 00:06:41,670 --> 00:06:48,250 Identify the virtual host and in which you give your name of the file. 68 00:06:48,960 --> 00:06:54,390 Remember, WAGA can also be configured, are useful to configure the Apache. 69 00:06:54,390 --> 00:06:56,090 Fastjet can also be used. 70 00:06:56,400 --> 00:07:00,510 So in order to do the Fastjet configuration, change the name to this. 71 00:07:01,440 --> 00:07:09,870 And unlike Deepti F.C., a feisty astronautical, too, this is the name and these are the different 72 00:07:09,870 --> 00:07:15,960 options that you want to give, soccer is equal to being part is equal to a local equal. 73 00:07:16,350 --> 00:07:20,600 These parameters must be given as a configuration setting to this circle. 74 00:07:20,880 --> 00:07:23,460 And the Aleut you are all for static is this. 75 00:07:24,500 --> 00:07:29,270 This is the you are in for your your application, not Fastjet. 76 00:07:29,450 --> 00:07:35,960 So all these settings need to be needed to be done, are required to be done for the fast CGI deployment 77 00:07:35,960 --> 00:07:36,800 of your application. 78 00:07:37,160 --> 00:07:40,160 So you can either use the cloud cloud platforms. 79 00:07:41,500 --> 00:07:48,970 You know, like Heroku, or you can even use the Google cloud platform to host your application or you 80 00:07:48,970 --> 00:07:51,890 can host your application on the Apache servers. 81 00:07:52,300 --> 00:07:53,210 There are two options. 82 00:07:53,230 --> 00:07:57,570 One is to use the more WRGA or Fastjet. 83 00:07:57,850 --> 00:07:59,710 So these are different options. 84 00:07:59,710 --> 00:08:07,630 You can take your time and explore these, you know, facilities or operations or options to try and 85 00:08:08,320 --> 00:08:13,370 deploy your application on either the cloud or the real Web servers. 86 00:08:13,630 --> 00:08:22,100 So that was all about the deployment of a flash application on the real servers as far as the two options 87 00:08:22,100 --> 00:08:22,580 that concerned.