Hello, friends, in this video, we shall try to explore what are the different deployment options
for our flask application.
The development activity, when you are in the in the process of developing the entire.
Flask application, you always are invoking a development environment, you are running the development
server, which is on the local machine when the application is to be placed on it, real web server.
Then what are the different options that are available?
So there are different options available are these are called as the homestead platforms, they offer
free plan for their small applications, Heroku DOT Web faction.
These are cloud platforms on whom the application can be deployed.
And more often than not, these cloud platform have their own user interface using which their application
can be deployed on it.
It is also possible to deploy your application on the Google's cloud platform also.
But then all these are.
The cloud platforms, if you want to host the flask application on an Apache server.
Then what do you do, you have to install a more WGI module on the top of the Apache HTP server.
So this module provides the WSI compliant interface for hosting the Python based application on Apache
to install an official release of the more WGI Go to the Pipe IPY by Python package indexed by using
the well-known utility.
So I install more WSI.
This module will be installed in the Python distribution.
Whether or not that particular module has been properly installed or not just issued its command from
the command line.
Say more WGI Express Start server.
So as a result of this, this will start up the aperture more WGI, waga on your word number eight zero
zero eight zero zero zero.
You can verify that by visiting this link to close to zero zero zero.
So it will confirm whether this more WGI has been properly installed or not then.
There should be a corresponding WSI file corresponding to your application.
I'm naming it as your about WGI.
This file contains the code that this more WGI will execute every time when the application starts.
Startup the startup called for your application object for most applications.
This is enough.
This line.
From your app, you bought app as your application, so that line was present in this in this file.
Make sure that your application, your app and all the libraries that are supporting your application,
the supporting libraries and your application are in use are on the Python's Law part.
So that they will be easily available for the execution and access, you need to tell them more WGI
the location of your application, how to tell by providing this part of this debate in the HTP configuration
file of your Apache's.
Identify the presence of this virtual host segment of your HTP dot com and server name, whatever the
name.
This is the name of your WGI fight.
Where is that file you give the pot and the other?
Other is the location of your application, where where it is located.
For example, Skogland, your directory is directly in which your application is placed.
So this is the configuration that you are to do with your Apache's or.
Provide a WRGA file and provide the location of the WHCA file, as well as your application application
folder that must be provided.
In addition to the more WGI, there is another alternative for deployment deployment with the help of
the fast CGI.
Far CGI is another deployment option.
Which can be used on the Web servers like Unix, like as deeply and Turok, you need to create a flask
CGI server file.
Let us call as in case of the WGI, I'm calling it at your application.
Not if CGI now in that when you start your application, if the name is equal to men instead of Eppy
dot run, you are to say WGI server in the bracket.
Then give the name of your application Dr..
Some of the VIPs, there were some of the older versions of Light, deeply near, explicitly to be mentioned,
what the board number to be given.
So, for example, here.
WGI server, your name of the application buying the address is equal to the part to have CGI soccer
to which it is going to listen, not one.
This is the setting that you want to you have to perform while executing your application or deploying
your application on it.
Fast CGI.
In order to configure Apache.
Identify the virtual host and in which you give your name of the file.
Remember, WAGA can also be configured, are useful to configure the Apache.
Fastjet can also be used.
So in order to do the Fastjet configuration, change the name to this.
And unlike Deepti F.C., a feisty astronautical, too, this is the name and these are the different
options that you want to give, soccer is equal to being part is equal to a local equal.
These parameters must be given as a configuration setting to this circle.
And the Aleut you are all for static is this.
This is the you are in for your your application, not Fastjet.
So all these settings need to be needed to be done, are required to be done for the fast CGI deployment
of your application.
So you can either use the cloud cloud platforms.
You know, like Heroku, or you can even use the Google cloud platform to host your application or you
can host your application on the Apache servers.
There are two options.
One is to use the more WRGA or Fastjet.
So these are different options.
You can take your time and explore these, you know, facilities or operations or options to try and
deploy your application on either the cloud or the real Web servers.
So that was all about the deployment of a flash application on the real servers as far as the two options
that concerned.