I deployed a flask app on heroku , it was crashed immediately - python

I deployed a flask application on heroku. At first the user interface opened but when using forms or buttons of the page, the server overloaded and the app crashed, although the app worked well locally.
the link of the app on github is -
https://github.com/ahmedtoba/gas-lift
the link of the app is -
https://gas-lift.herokuapp.com/

Related

How we can deploy a Flask + React Application to Azure?

I want to create a machine learning app with Flask as backend and keep React JS as the front-end. Though I found couple of tutorials how to do that but there are very few in terms of deployment. I want to deploy and host a Flask+ReactJS app to Azure cloud. Is there any good tutorial or link which I can follow. I have been struggling for days now.
Thanks
To achieve the above requirement you can find the below mentioned sample resource to create and host flask and react app in AZURE.
To do that we will need to setup the flask app as backend and then React app.
Please refer this BLOG for complete setup to build.
For more information you can refer the below links:-
SO THREAD: How to deploy a Flask+React application to Azure Web Service
BLOG:- Deploy your Flask app on Azure & How to automate Python/Flask deployment to Azure App Service

How to connect to flask server from flutter app after build?

I have my flask app which would serve my flutter app using HTTP requests. Everything is okay when the mobile phone is connected to the PC. But once after we deploy the app to the mobile phone and detach it from the PC, how would the flask app serve the flutter app?
Is there any way which would start the python script when the flutter app is launched in the mobile phone?
for testing purpose you can use ngrok to deploy your flask server, for more info ngrok
Your phone when connected to the PC is accessing a Flask app via 'localhost'. You have two options to make it work (i.e. access Flask based REST APIs from the mobile when not connected to the PC).
Expose Flask app to the network. And make sure both PC and the mobile phone are on the same wifi. This link might help for that.
Deploy the Flask based APIs somewhere. There are few free web servers available out there (e.g. MS Azure). This or this link might help.

Flask app concurrent users

i'm using a flask app to host my python engine so that it can be accessed by a web app which hosts the GUI for the flask app. using wsgi but not sure about concurrency? can any one shed some light on this?

Deploying web2py app on Google App Engine

I'm tring to hosped my web2py app on GAE, but I'm not having success. I copied the web2py\example\app.example.yaml to web2py\app.yaml and the queue.yaml too. I edited the line application of the first file cited. I downloaded the web2py_src and the GAE luncher for windows, then I created a account on GAE, where my app is named 'topranchos'. The I added the app on GAE, ran one time and clicked in Deploy. It showed that the files was updated on server.
Then, when I try to access http://topranchos.appspot.com , the server raise HTTP 500 error.
How can I solve it?
The link to image of console from GAE dashboard is here: http://i.stack.imgur.com/TAXoq.png
I solved this problem moving the handlers/gaehandler.py to web2py root path. Thank you

API URL's are not working for django app

I have hosted a django-python app into server.The app is using mysql as database for app.Unfortunately mysql is upgraded to percona on same server,then after all the django app URL calls are not working.What could be the solution for this problem??

Categories

Resources