Python Forum
how to place Flask code on a public web server - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: how to place Flask code on a public web server (/thread-4162.html)



how to place Flask code on a public web server - rarevesselt - Jul-27-2017

rarevesselt Wrote:I am a newbie in web development. I need help on how to place my flask code on the dormain
I have bought.The hosting company is a2hosting.com.Any help will be appreaciated

Thanks
Olatunji



RE: how to place Flask code on a public web server - metulburr - Jul-27-2017

try these tuts
https://python-forum.io/Forum-Web-Tutorials


RE: how to place Flask code on a public web server - DeaD_EyE - Jul-27-2017

It depends from the provider. There is an FAQ for Python: https://www.a2hosting.com/kb/developer-corner/python/installing-and-configuring-django-with-fastcgi-on-shared-hosting

You've ssh access to install the virtual environment. The entry point is a modified .htaccsess file, which points to your application.


RE: how to place Flask code on a public web server - rarevesselt - Jul-28-2017

Thanks for the time.I will check them out.


RE: how to place Flask code on a public web server - rarevesselt - Jul-31-2017

I am having this error after following the step on the link https://www.a2hosting.com/kb/developer-c...ed-hosting.
The error am having is this: Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

What is responsible for this?


RE: how to place Flask code on a public web server - DeaD_EyE - Jul-31-2017

Your Web application. Maybe there is a dependency you don't have installed inside the virtual environment. You should have the possibility to debug.


RE: how to place Flask code on a public web server - rarevesselt - Oct-04-2017

Thanks.
I finally got it running.Thanks for all your help.The .htaccess setting and path my.cgi file was the problem.