There are basically 2 ways which I have learned so far
1. You can run internal python web server
PS C:\Mandar\Projects\RaterMigration\IhExpressToCogitateRater> python.exe app.py
* Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 629-182-235
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [30/May/2020 18:11:37] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [30/May/2020 18:11:37] "GET /static/css/styles.css HTTP/1.1" 404 -
127.0.0.1 - - [30/May/2020 18:11:38] "GET /static/img/favicon.ico HTTP/1.1" 404 -
1. You can run internal python web server
python.exe -m http.server <8888> --port number is optional.. default is 8000
2. Using Flash web server, and to run that simply call python.exe <python file of flash>. please see below
PS C:\Mandar\Projects\RaterMigration\IhExpressToCogitateRater> python.exe app.py
* Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 629-182-235
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [30/May/2020 18:11:37] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [30/May/2020 18:11:37] "GET /static/css/styles.css HTTP/1.1" 404 -
127.0.0.1 - - [30/May/2020 18:11:38] "GET /static/img/favicon.ico HTTP/1.1" 404 -
No comments:
Post a Comment