So when i run the application in amazon instance it tries to get the data from google inthis image
when it goes to the callback this is the output i get
I have run an python application with google Oauth2 and ran it successfully locally. Gunicorn serves http and google Oauth2 requires hhtps. I locally used certificates i have generated and it worked successfully, but when i try to deploy in Amazon Ec2 instance, it doesn't work. Did anyone face such kind of problem? will using nginx be helpfull in that case?
Related
I’ve recently tested and deployed a flask app as the minusthemiddleman website. All of the functions tested and worked in the sandbox by multiple testing methods before deployment to nginx and uwsgi in production. For some reason page 2 of the search function causes a resource problem in app as deployed. I’ve had a chance to monitor the redis directly using $redis-cli monitor and check my pip list to make everything is installed in production correctly.
The specific error is:
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Does anybody have ideas as to why this is malfunctioning? Thanks,
I would like to be able to run a flask app in development on a sagemaker notebook instance and then look at the flask application in my browser. I know what I've previously been able to configure this kind of access on ec2 by opening up the port for my ip, but I'm not finding any how to for how to do it on sagemaker, which otherwise comes with the nice user interface. How can I access the flask app running on a Sagemaker notebook instance? In general, I'm struggling to find a development framework for flask apps once the database it uses is in Amazon RDS.
Is there any way to test applications for Google Cloud or Azure locally in a computer, similar to the Localstack Docker image for AWS?
Thank you!
To test you application locally you can use Google App Engine Local Devolopment server to simulate your app running on app engine externally.
Demo python application via app engine
As you mentioned docker you may want to test your images locally you can also do this by following these instructions.
You can see this post. Here are some useful links, you will find
https://www.testcontainers.org/modules/gcloud/
Scenario:
I want to deploy a kafka python producer api on Azure through pipeline. I have an artifact which is a producer python code that needs to be deployed on azure app service.
Question:
Is deploying this code on azure app service really recommended? (knowing that this is not a webapp but just a kafka producer for internal application).
What service can alternatively be used to run such python codes on azure?
It seems that Kafka is a server, not the code project. So I recommend you use the custom docker image and deploy it on the Azure Web App for Container.
You can create the custom docker image with installing the Kafka inside the image and then deploy the Web App for Container from the custom image. When it finishes, the web app can access and you do not need to deploy code to it.
I'm trying to deploy my own API. I am using Django and the Django Rest Framework. I have uploaded my Django via Elastic Beanstalk Command Line Interface via eb init and eb create.
I am following this tutorial and have followed all of the steps:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create-deploy-python-django.html
I have successfully created my environment and uploaded my app:
However, when I hit up the url via eb open, this shows:
How do I debug something that tells me nothing is broken? I feel like something is off. My intuition tells me it has to do with me trying to serve my API over SSL. I currently have my Django app redirect all http requests to https. Do I have to run manage.py runsslserver? Do I need to install any environment things from my requirements.txt file?
EDIT: Normally when I run python manage.py runsslserver, I'm greeted with this on localhost. I have set up an api-root and expected to see that when I hit the EBS url.