Channel | Publish Date | Thumbnail & View Count | Actions |
---|---|---|---|
| Publish Date not found | ![]() 0 Views |
Deployment Notes
0. Install Chrome, Set Internet Security Level, unhide file name extension
1. Install Python
Download python from here: https://www.python.org/downloads/
2. Install Apache
Download Apache from here: https://www.apachelounge.com/download/
Unzip the file and follow the README instruction to install Apache
3. Install VC++ build tools and windows sdk
Download build tools from here: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Check at least 3 options and Windows 10 SDK
4. Install Python Package: mod_wsgi, flask
Using pip install to install all dependencies
5. Set up Flask app
Create a folder for flask app, assuming folder name is myapp001,
Make the main app.py file name as /”__init__.py/”
Create a file /”wsgi.py/” with the following code:
0. Install Chrome, Set Internet Security Level, unhide file name extension
1. Install Python
Download python from here: https://www.python.org/downloads/
2. Install Apache
Download Apache from here: https://www.apachelounge.com/download/
Unzip the file and follow the README instruction to install Apache
3. Install VC++ build tools and windows sdk
Download build tools from here: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Check at least 3 options and Windows 10 SDK
4. Install Python Package: mod_wsgi, flask
Using pip install to install all dependencies
5. Set up Flask app
Create a folder for flask app, assuming folder name is myapp001,
Make the main app.py file name as /”__init__.py/”
Create a file /”wsgi.py/” with the following code:
import sys
sys.path.insert(0, ‘C:////path////to////myapp001’)
from myapp001 import app as application
Replace the path with correct path (it should be the path of the folder containing myapp001, but not including myapp001), and myapp001 with your app folder name
6. Start apache server
Change directory to the folder containing /”wsgi.py/”
Run this command in cmd to start the server:
$ mod_wsgi-express start-server wsgi.py –processes 4
Please take the opportunity to connect and share this video with your friends and family if you find it useful.