Python Forum
how to place Flask code on a public web server
Thread Rating:
  • 3 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to place Flask code on a public web server
#1
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
Reply
#2
try these tuts
https://python-forum.io/Forum-Web-Tutorials
Recommended Tutorials:
Reply
#3
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.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#4
Thanks for the time.I will check them out.
Reply
#5
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?
Reply
#6
Your Web application. Maybe there is a dependency you don't have installed inside the virtual environment. You should have the possibility to debug.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply
#7
Thanks.
I finally got it running.Thanks for all your help.The .htaccess setting and path my.cgi file was the problem.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Server Error with parse_args() using Flask NoNameoN 0 1,085 Jul-30-2022, 09:42 AM
Last Post: NoNameoN
  [split] flask 500 internal server error DarthTensor 3 4,011 Nov-11-2021, 06:10 AM
Last Post: DarthTensor
  first time use of locust - this is the place to ask? korenron 0 1,354 Jul-28-2021, 08:26 AM
Last Post: korenron
Question Flask, Self-hosted deployment, which server ? SpongeB0B 1 3,013 Apr-11-2021, 11:29 AM
Last Post: snippsat
  Flask Ubuntu Server Not Running Wheel 0 2,005 Jul-14-2020, 08:12 PM
Last Post: Wheel
  [FLASK] How to structure the code in my case ? Fre3k 4 2,637 May-04-2020, 04:43 PM
Last Post: Fre3k
  Python Rest API Public/Secret Keys Authentication Nonce dn237 1 2,905 Oct-31-2019, 02:07 AM
Last Post: dn237
  Login screen code with SQL Server database nairsanthu1977 2 2,712 Jan-11-2019, 12:29 PM
Last Post: nairsanthu1977
  Flask return http status code 200 but web browser not recive supernoobs 2 10,671 Dec-29-2018, 09:27 PM
Last Post: Unisoftdev
  starting with flask: code does not work Peter_EU 2 3,404 Oct-20-2017, 05:35 PM
Last Post: Peter_EU

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020