google-app-engine-php

Reaching quota for ip address in use too fast for App engine

若如初见. 提交于 2020-05-29 05:52:11
问题 I have a webserver running in App Engine and the client is a mobile app. I am seeing that a lot of requests on the mobile are starting to fail once we scaled up to a lot of users. I am not seeing any failures in our logs however. I noticed in our quotas that our ip address in use for Compute Engine API is at its max of 8 (even though we're not running any services on Compute Engine). I am not sure if this is the root cause but it wasn't like this before, I was wondering if there is any advice

Google App Engine PHP SDK - How to install on Ubuntu (15.10)?

风流意气都作罢 提交于 2020-01-02 10:19:53
问题 Google official documentation is available here: https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_PHP But it doesn't provide sufficient information about the following step: "4 - Build and install the PHP interpreter and App Engine PHP extension. Specify the path to php-cgi and gae_runtime_module.so when running the development server." I'm using a new Virtualbox machine with Ubuntu 15.10 and PhpStorm to test GAE. Could someone please provide clear instructions about

GAE: file_get_contents() and static files

霸气de小男生 提交于 2019-12-29 09:33:09
问题 Instead of updating the same variable in various locations I parse files and extract the bits I need. One bit I am looking for is the cache name in my service-worker.js file. When I'm developing locally, I can easily retrieve the js file in the directory structure. When I deploy my app to GAE, the service worker JS file needs to be declared static and so GAE stashes it away somewhere. Is there a way to get to this file without making a URL call? This is what I currently use and it's all

Ubuntu - Right protobuf paths for ./configure command

懵懂的女人 提交于 2019-12-24 01:57:18
问题 I am following Google official documentation for GAE (Google app engine) installation. Look at this part (relative to gae php extension): https://github.com/GoogleCloudPlatform/appengine-php-extension ./configure --enable-gae --with-protobuf_inc=<include_path> --with-protobuf_lib=<lib_path> The documentation says: Set <include_path> and <lib_path> to where you have installed the protobuf headers and libraries in the previous step. I always get an error in the terminal when I run the .

What is solution for downloading arbitrarily large files to Cloud Storage using Google App Engine php55 or php7?

六月ゝ 毕业季﹏ 提交于 2019-12-11 05:32:12
问题 I have a google app engine php55 service that periodically checks a public website and downloads a file. This file is typically small (<1MB). My simple app is based on the following: <?php $strSource = 'https://example.com/file.zip'; $strBucket = 'bucket-1234'; $strDirectory = '/path/to/file/'; // Google Cloud Storage directory $strName = 'file.zip'; $strDestination = 'gs://' . $strBucket . '.appspot.com' . $strDirectory . $strName; copy($strSource,$strDestination); ?> I found this file

Google App Engine PHP SDK - How to install on Ubuntu (15.10)?

不问归期 提交于 2019-12-06 08:57:50
Google official documentation is available here: https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_PHP But it doesn't provide sufficient information about the following step: "4 - Build and install the PHP interpreter and App Engine PHP extension. Specify the path to php-cgi and gae_runtime_module.so when running the development server." I'm using a new Virtualbox machine with Ubuntu 15.10 and PhpStorm to test GAE. Could someone please provide clear instructions about step 4? What do I need to do to install the php interpreter and the App Engine php extension? P.s. I've

GAE: file_get_contents() and static files

我的梦境 提交于 2019-11-29 18:05:49
Instead of updating the same variable in various locations I parse files and extract the bits I need. One bit I am looking for is the cache name in my service-worker.js file. When I'm developing locally, I can easily retrieve the js file in the directory structure. When I deploy my app to GAE, the service worker JS file needs to be declared static and so GAE stashes it away somewhere. Is there a way to get to this file without making a URL call? This is what I currently use and it's all working fine in DEV: <?php function getCacheId() { $cache_id = ""; $c = file_get_contents ( dirname ( __FILE

How do I download a specific service's source code off of AppEngine?

旧时模样 提交于 2019-11-29 08:49:09
I have some php source code working in an app engine production environment that won't work anywhere else. Old versions of that code don't seem to work at all either so I need to get that source and see what the heck it is doing differently. This discussion outlines the challenges I'm having: http://google-app-engine.75637.x6.nabble.com/Download-specific-Module-code-td699.html I was told to try using appcfg.py download_app: appcfg.py download_app -A <APP_NAME> -V <Version> <DIR> The problem is that this command does not allow me to specify module / service so I can't target my source code.