trying to setup TinyWebDB on google cloud, but deploy not working - python-2.7

I am trying to follow the instructions on this page, and they are working great, until the part where I deploy from my Google App Engine Launcher. When I click deploy I should see something like this:
But instead, I see something like this:
and the end result is that my app doesn't get deployed to xxxxxxx.appspot.com, it redirects me to http://localhost:8080/?code=4/EfmizPdAPVDgoSInA8mS1KVOvQTkWX4ziFnEpG3XKxA#
I'm a begginer with this kind of tech, please, any suggestions on how to troubleshoot?

Found the answer here. In my case, what worked was to first disable the app in the App Engine Launcher, and only then hit deploy. First time I tried, it authenticated, then second time I deployed, it deployed successfully. Thanks Arnie.
In case, I post his other suggestions:
1) remember to give your google id access to less secure apps.
2) remember to go to appspot.com or https://appengine.google.com/ and accept terms and conditions. Your project should also be active on https://console.developers.google.com/project
3) use correct versions of python and google app engine SDK
4) Before hitting deploy button on google app engine stop the app from running on your local host. It will NOT deploy while it is running locally on local host.

Related

Failed to register a ServiceWorker. The script resource is behind a redirect, which is disallowed

I wanna make a flutter web app and deploy it to AWS.
After researching it looks like using AWS Amplify is the easiest way so I try it, however after I successfully deploy it, it only shows a white screen with this showing on the log after I inspect:
However the web app show up just fine on my GitHub page and Codemagic, you can see it on rezyfr.github.io and fl-blog.codemagic.app. And here is my amplify yaml file:
Is anyone ever experience this and found the solution? Or anyone have a better way to deploy flutter web on AWS?

deploying react and django (server side) application on googlecloud

I had created a web application.Front end is created by ReactJS and back-end(server side)is created by Django framework,
Here I am using PostgreSQL database.
The application is successfully running on my local machine by running both python manage.py runserver and npm start at a time in my terminal.
I need to deploy my entire app on google cloud using compute engine.
I already purchased a domain. I don't know how to connect these 2 platforms(Django and ReactJS) in cloud. if anyone knows deploy Django go as server-side and react as front-end in GooleCloud (using compute engine)
Even though your question is a bit broad, I think you may find these resources useful:
Getting started with Django [1]. You can compare the 4 main options to use Django in GCP.
Django Certified by Bitnami [2] is a ready to use pre-configured Django environment that deploys all the Compute Engine resources you need.
You can find more information on the Bitnami Django Stack For Google Cloud Platform here [3]
You could start using one of the pre-configured solutions and customize the VM by installing what you need afterwards. Or start with a blank VM and configure everything from scratch [4].
In a more general sense, this guide “Serving websites” [5] is a very good read to better understand all the options you have within Google Cloud Platform to host a website; more specifically, the section “Using virtual machines with Compute Engine” [6].
I’m assuming that you already know how to get Django and ReactJS work together, as you did it already in your local machine. I hope these articles are useful for you.
[1]https://cloud.google.com/python/django/#hosting_platforms
[2]https://cloud.google.com/marketplace/solution/bitnami-launchpad/djangostack?q=django
[3]https://docs.bitnami.com/google/infrastructure/django/
[4]https://cloud.google.com/compute/docs/instances/create-start-instance
[5]https://cloud.google.com/solutions/web-serving-overview
[6]https://cloud.google.com/solutions/web-serving-overview#compute-engine

How to view deployed source file in GCP Console(AppEngine Flexible Environment)?

I'm pretty new to the Google Cloud Platform. I have deployed a Python 3 Flask app in AppEngine Flexible Environment using the Google Cloud SDK and the app works fine. I just want to view the source files deployed, in the cloud. Is there any way to view my project files in GCP?
You can view the source files by clicking on tools > debug next to the app version on your versions page
Alternative, you can go to your instances page, click on SSH next to one of the instances and you will enter the debug mode for that specific instance.
This will open a console in your browser and you can start a shell in the container that is running your app, as described here.
PS: apparently this is possible only for the Flexible Environment

Is it possible to create a GUI with python on the Google Cloud Platform

I am trying to create a web application using python on the google cloud platform. I have followed Google's quick-start guide and completed it.
App currently just prints out text
However, I am struggling to figure out a way to create a gui. I am aware of the python modules tk and tkinter and I have tried to use those with no success. I also saw the warning in the Google Cloud Console about how installed modules only exist for the current instance of the app - but even when installing the module directly before deploying the app - it still throws an import error.
I did some research and followed this guide: https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27
Assuming I didn't miss any steps - would this guide solve my problem? Or is there a better way to create a GUI?
Any suggestions are encouraged. Thanks
App Engine is web oriented service. Read about it in the overview and the appropriate gui there would be a web based one.
If you want to have a remote server that will server graphical applications look closer at Google Cloud Compute Engine where you can have a VM instance, where you can install and run any application.

Integrating Google Calendar in a Django application running on app engine

I have been trying to integrate Google calendar into a Django application running on App Engine. I have managed to get the google-python-client-api working on my computer and even managed to get a Django app to run on my computer. However, I am unable to get the app compatible with the Django app that is deployed on the appengine. I tried importing all the dependencies - httplib, gdata, gflags but when I run that project it still gives me 500 error. Is there a way to make these 3 things play nice with each other or should I look to deploy Django natively somewhere else?
This is what finally solved my problem. :-
I went into oauth2client/client.py, and there's a conditional before the
CACHED_HTTP = httplib2.Http('.cache')
so I commented out the conditional so it uses the other case:
CACHED_HTTP = httplib2.Http()
automatically, and this one does not call makedirs.
Found on: - https://groups.google.com/forum/?fromgroups#!topic/google-appengine-python/tIwjdy28MzQ