Python Forum

Full Version: how to place Flask code on a public web server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
It depends from the provider. There is an FAQ for Python: https://www.a2hosting.com/kb/developer-c...ed-hosting

You've ssh access to install the virtual environment. The entry point is a modified .htaccsess file, which points to your application.
Thanks for the time.I will check them out.
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?
Your Web application. Maybe there is a dependency you don't have installed inside the virtual environment. You should have the possibility to debug.
Thanks.
I finally got it running.Thanks for all your help.The .htaccess setting and path my.cgi file was the problem.