google-app-engine

Google app engine nodejs local development

旧巷老猫 提交于 2020-07-08 13:39:14
问题 Is there a way to run my nodejs application locally so that I can simulate my application running in production App Engine without deploying it? For some reason my app behaves differently in the Google App Engine compared to my localhost. I am getting tired of deploying my application to Google App Engine every time I make a change just to see if there's a bug. 回答1: You'll never get exactly the same behaviour on your local system and on the real GAE infrastructure. For once simply because the

Google app engine nodejs local development

我与影子孤独终老i 提交于 2020-07-08 13:39:05
问题 Is there a way to run my nodejs application locally so that I can simulate my application running in production App Engine without deploying it? For some reason my app behaves differently in the Google App Engine compared to my localhost. I am getting tired of deploying my application to Google App Engine every time I make a change just to see if there's a bug. 回答1: You'll never get exactly the same behaviour on your local system and on the real GAE infrastructure. For once simply because the

gcloud crashed (SSLHandshakeError) in gcloud app deploy

筅森魡賤 提交于 2020-07-08 05:39:28
问题 Unable to deploy my app as I started getting below error since today morning. I have tried gcloud info --run-diagnostics and gcloud components reinstall without much help. I tried to deploy it using the old Google App Engine Launcher for Windows but faced the same error. Earlier it worked till yesterday night (IST) using gcloud. Please help! I am on latest gcloud sdk and have updated all its components. I use Win10. I tried rebooting my laptop as well. C:\gaurav\coding\python\myapp\myapp\dist

Server Sent events with Flask and Google App Engine

情到浓时终转凉″ 提交于 2020-07-08 00:46:10
问题 I've been trying to get a webapp to work which uses Server-Sent Events. The app that I've written works on my local machine when using Flask's app.run() method. But when I run it on GAE, I've not been able to make it work. The webapp uses SSE to publish a message with the current time every so often. The client simply adds it to the HTML of a div. Flask app import random from datetime import datetime from flask import render_template, Response from time import sleep from message_server import

App Engine Flexible Environment - Dockerfile installing outdated version of GDAL

半腔热情 提交于 2020-07-07 11:23:32
问题 I am trying to use a Docker image on Google App Engine Flexible Environment. FROM ubuntu:bionic MAINTAINER Makina Corpus "contact@makina-corpus.com" ENV PYTHONUNBUFFERED 1 ENV DEBIAN_FRONTEND noninteractive ENV LANG C.UTF-8 RUN apt-get update -qq && apt-get install -y -qq \ # std libs git less nano curl \ ca-certificates \ wget build-essential\ # python basic libs python3.8 python3.8-dev python3.8-venv gettext \ # geodjango gdal-bin binutils libproj-dev libgdal-dev \ # postgresql libpq-dev

How to connect to Redis instance (memorystore) from Google's Standard App Engine (Python 3.7)

久未见 提交于 2020-07-07 05:41:38
问题 I've been trying to get a connect to a Redis instance from an App Engine instance without any luck. I get a connection time out. I've set the host and port in my app.yaml: env_variables: REDIS_HOST: '10.0.0.3' REDIS_PORT: '6379' And try to connect as specified in the examples: redis_host = os.environ.get('REDIS_HOST', 'localhost') redis_port = int(os.environ.get('REDIS_PORT', 6379)) redis_client = redis.StrictRedis(host=redis_host, port=redis_port) But it's not working, some documentation

Angular 7 Routing in Google Cloud App Engine not working

谁说胖子不能爱 提交于 2020-07-06 09:44:28
问题 I've published an angular 7 Application to Google Cloud App Engine. The index page is loading, but the subdirectorys give me Error: Not Found The requested URL /admin was not found on this server. This is my app.yaml: runtime: nodejs10 env_variables: environment: "--prod" handlers: - url: / static_files: dist/XXX/index.html upload: dist/XXX/index.html - url: / static_dir: dist/XXX/ - url: /.* secure: always script: auto Edit: I finally figured out, how the routing in app.yaml works for

Any way to force reset of all cached static files on AppEngine?

被刻印的时光 ゝ 提交于 2020-07-06 06:41:20
问题 I am running into a known AppEngine issue where the wrong static content is cached if I go to a particular URL for my app, but the right static content shows up if I append a ?foo parameter to bust the cache, and VERSION.myapp.appspot.com works too. Is there any way to get the correct content showing up at the unmodified URL? I would be happy to delete the app and restore it or anything drastic. The app isn't live, but I need it to be in a couple of hours. Anything to get those URLS working

What is the best approch to setup custom domain with static IP for AppEngine

怎甘沉沦 提交于 2020-07-01 01:32:55
问题 I had done an investigation on below Adding custom domain through AppEngine settings - Doesn't seem to be static IP, it uses Google NS. Setting up VM and run as a proxy - Seems to be convoluted method and security/maintenance overhead. HTTPS load balancer with internet NEG I am still investigating and it said You should do this when you want to serve content from an origin that is hosted outside of Google Cloud, and you want your external HTTP(S) load balancer to be the frontend. Any

What is the best approch to setup custom domain with static IP for AppEngine

橙三吉。 提交于 2020-07-01 01:32:13
问题 I had done an investigation on below Adding custom domain through AppEngine settings - Doesn't seem to be static IP, it uses Google NS. Setting up VM and run as a proxy - Seems to be convoluted method and security/maintenance overhead. HTTPS load balancer with internet NEG I am still investigating and it said You should do this when you want to serve content from an origin that is hosted outside of Google Cloud, and you want your external HTTP(S) load balancer to be the frontend. Any