google-app-engine

How to log Stackdriver log messages correlated by trace id using stdout Go 1.11

≡放荡痞女 提交于 2021-02-06 11:56:08
问题 I'm using Google App Engine Standard Environment with the Go 1.11 runtime. The documentation for Go 1.11 says "Write your application logs using stdout for output and stderr for errors". The migration from Go 1.9 guide also suggests not calling the Google Cloud Logging library directly but instead logging via stdout. https://cloud.google.com/appengine/docs/standard/go111/writing-application-logs With this in mind, I've written a small HTTP Service (code below) to experiment logging to

How do appengine cursors work?

给你一囗甜甜゛ 提交于 2021-02-06 11:43:51
问题 I'm using both ndb and search-api queries in my python appengine project. The only official docs on cursors I can find: https://cloud.google.com/appengine/docs/python/datastore/query-cursors https://cloud.google.com/appengine/docs/python/search/cursorclass Following things are unclear for me: What is cursor time-to-live ? Can I expose year-old cursors ? How would cursor pagination behave in case items are added/removed from original collection? (+ if cursor points to particular record, what

Google App Engine: Endpoints authentication with ID and password

半腔热情 提交于 2021-02-06 04:26:50
问题 We have an HTML5 client accessing a Google Cloud Endpoints backend. We want to offer users a reasonable range of sign-in methods , e.g.: sign-in with an existing OpenID, or alternatively sign-up with an email and password. These seem like basic requirements to us! If there is a better alternative that does not restrict our audience, then we'd consider it. We're encountering two problems: (1) it seems the Endpoints service will only authenticate Google accounts, and (2) we don't know how to

How to debug Nodejs app running inside Docker container via Google Cloud

微笑、不失礼 提交于 2021-02-05 20:24:02
问题 I have found Google provides some guidelines on how to run Nodejs on a custom runtime environment. Everything seems fine and I am managing to start my Nodejs app on local machine running gcloud preview app run . . As I can see, it probably creates a Docker container and runs Nodejs program in there. I am saying "probably" , because it is my first experience with Docker, however I am 2+ years experienced Nodejs developer. So my question is how to debug (with breakpoint stops) my Nodejs program

How to debug Nodejs app running inside Docker container via Google Cloud

╄→尐↘猪︶ㄣ 提交于 2021-02-05 20:20:22
问题 I have found Google provides some guidelines on how to run Nodejs on a custom runtime environment. Everything seems fine and I am managing to start my Nodejs app on local machine running gcloud preview app run . . As I can see, it probably creates a Docker container and runs Nodejs program in there. I am saying "probably" , because it is my first experience with Docker, however I am 2+ years experienced Nodejs developer. So my question is how to debug (with breakpoint stops) my Nodejs program

How to debug Nodejs app running inside Docker container via Google Cloud

你。 提交于 2021-02-05 20:19:27
问题 I have found Google provides some guidelines on how to run Nodejs on a custom runtime environment. Everything seems fine and I am managing to start my Nodejs app on local machine running gcloud preview app run . . As I can see, it probably creates a Docker container and runs Nodejs program in there. I am saying "probably" , because it is my first experience with Docker, however I am 2+ years experienced Nodejs developer. So my question is how to debug (with breakpoint stops) my Nodejs program

Weasyprint Dockerfile for GAE

我只是一个虾纸丫 提交于 2021-02-05 12:15:16
问题 I am trying to install weasyprint on gae, i know we can install external libraries by passing it in a Dockerfile by changing the runtime from python to custom in app.yaml. I am having trouble creating the Dockerfile for weasyprint libraries. 回答1: Here is a simple example that I wrote following these instructions. I have tested it and the deployment on GAE has been successful for me: Dockerfile FROM gcr.io/google-appengine/python # Create a virtualenv for dependencies. This isolates these

Weasyprint Dockerfile for GAE

拜拜、爱过 提交于 2021-02-05 12:14:16
问题 I am trying to install weasyprint on gae, i know we can install external libraries by passing it in a Dockerfile by changing the runtime from python to custom in app.yaml. I am having trouble creating the Dockerfile for weasyprint libraries. 回答1: Here is a simple example that I wrote following these instructions. I have tested it and the deployment on GAE has been successful for me: Dockerfile FROM gcr.io/google-appengine/python # Create a virtualenv for dependencies. This isolates these

Browser blocking Mathjax on app engine static page

不打扰是莪最后的温柔 提交于 2021-02-05 09:27:09
问题 I am trying to serve a static page containing Tex-style Math that is to be rendered by Mathjax. The pages are being served by a Flask app on Google app engine. Problem is - Chrome, Opera and Edge - all browsers are blocking Mathjax from rendering the Math, but it works properly if I manually unblock it from on top of the browser every time the page loads. The site works perfectly offline, but the problem occurs when the page is accessed through the app engine app. Any way to prevent the

pip install local package to target directory

前提是你 提交于 2021-02-05 05:12:48
问题 I have a Python library that is published to PyPI. Before pushing each new version of the library, I want to test it by upgrading a sample application to use the new version. The suggested method to do this is to work in "development mode" using the -e ( --editable ) flag: $ pip install -e <my package root> And this does indeed install the package into my global environment. However, my sample program is written for Google App Engine, which requires that all third-party libraries be copied