app.yaml

Google App Engine and Wordpress set up error - Windows 7 professional

[亡魂溺海] 提交于 2019-12-03 20:49:55
I'm trying to set up Google App Engine and Wordpress version 3.8 according to instruction at https://developers.google.com/appengine/articles/wordpress But when I run $ APP_ENGINE_SDK_PATH/dev_appserver.py APPLICATION_DIRECTORY I have got the error Unable to assign value 'wordpress/. .(htm|html|css|js)$' to attribute 'upload:' value 'wordpress/. .(htm|html|css|js)$' for upload does not match expression '^(?:(?!\^).*(?!\$).)$' in app.yaml in line 9, column 11 Here is my app.yaml file's content: application: thangvmwordpressdemo version: 1 runtime: php api_version: 1 handlers: - url: /(.*\.(htm

Deploy python script on google cloud platform

末鹿安然 提交于 2019-12-02 03:42:24
I'm figuring out how to deploy my script on google cloud platform. ive already made a directory or folder that contains the script.py and all the libraries in /lib folder. what i dont get is setting up my app.yaml to run script.py (python 2.7) and access lib if it needs to. I also dont know if i need to make requirments.txt since im using third party libraries. here are all my imports inside script.py import requests import re import mysql.connector from urlparse import urlparse from urlparse import urljoin from bs4 import BeautifulSoup Also, what i have in my lib are BeautifulSoup,requests

Deploy python script on google cloud platform

耗尽温柔 提交于 2019-12-01 22:51:46
问题 I'm figuring out how to deploy my script on google cloud platform. ive already made a directory or folder that contains the script.py and all the libraries in /lib folder. what i dont get is setting up my app.yaml to run script.py (python 2.7) and access lib if it needs to. I also dont know if i need to make requirments.txt since im using third party libraries. here are all my imports inside script.py import requests import re import mysql.connector from urlparse import urlparse from urlparse

How to handle trailing slashing in Google App Engine app.yaml

孤街浪徒 提交于 2019-12-01 06:33:52
问题 I ran into this problem trying to answer this SO question here: Removing PHP file extension when serving PHP files about how to route certain requests in app.yaml for Google App Engine. But I couldn't figure out how to map requests for urls which may or may not have a trailing slash with a single app.yaml regular expression. Right now, I'm handling that case with two lines: handlers: - url: /(.*)/ script: /\1.php - url: /(.*) script: /\1.php But that seems redundant. Can these two lines be

how to solve “Process terminated because the request deadline was exceeded. (Error code 123)” in google api?

半世苍凉 提交于 2019-12-01 05:56:57
I have a projects deployed on Google App Engine having Google API (Python). Every request to any of API make a database connection , execute a procedure and return data and close the connection. I was not able to access any of API as it was showing "Process terminated because the request deadline was exceeded. (Error code 123)" and "This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application." error. Database is also on

GAE enforcing sign in by app.yaml, python decorators or users.get_current_user?

*爱你&永不变心* 提交于 2019-11-30 07:43:25
I'm using 'login' option in my app.yaml configuration file for a GAE application. Looks like this: - url: /admin/.* script: myapp.app login: admin - url: /.* script: myapp.app login: required UPDATE (by suggestion of bossylobster ) : I want a user always signed in (unsigned users can't do anything), and I need to know who the user is. Actually, I need OAuth2 credentials to communicate with Google APIs (for example, I need to fetch some user's info with Google Profiles API, and write in the user's calendar with Google Calendar API). Finally, I need an admin user to perform some operations (like

GAE enforcing sign in by app.yaml, python decorators or users.get_current_user?

半城伤御伤魂 提交于 2019-11-29 10:25:15
问题 I'm using 'login' option in my app.yaml configuration file for a GAE application. Looks like this: - url: /admin/.* script: myapp.app login: admin - url: /.* script: myapp.app login: required UPDATE (by suggestion of bossylobster) : I want a user always signed in (unsigned users can't do anything), and I need to know who the user is. Actually, I need OAuth2 credentials to communicate with Google APIs (for example, I need to fetch some user's info with Google Profiles API, and write in the

Is it .yaml or .yml?

半世苍凉 提交于 2019-11-28 15:15:20
According to yaml.org , the official file extension is .yaml . Quote: Is there an official extension for YAML files? Please use ".yaml" when possible. However there seems to be a disagreement on the internet on which extension to use. If you look up examples on the web , many of them use the unsanctioned .yml extension. Searching Google returns nearly 3 times as many results for the shorter one. 49,100 15,400 So which am I supposed to use? The proper 4 letter extension suggested by the creator, or the 3 letter extension found in the wild west of the internet? The nature and even existence of

cron job in google app engine not working

杀马特。学长 韩版系。学妹 提交于 2019-11-28 13:56:49
I have taken the basic python 3 tutorial website on flask from this google cloud tutorial and I am able to set this up and the website works just fine. In addition , I also wanted to run a python script which runs everyday to collect some data, but the cron job just doesn't work. I also added login: admin to restrict anyone to directly use that url cron.yaml cron: - description: test dispatch vs target url: /cronapp schedule: every 5 hours app.yaml runtime: python env: flex entrypoint: gunicorn -b :$PORT main:app runtime_config: python_version: 3 handlers: - url: /cronapp script: cronapp.py

How do I setup routing for react in GAE? Directly routing to react-router-dom routes via URL fails in GAE on basic create-react-app?

自闭症网瘾萝莉.ら 提交于 2019-11-28 01:05:31
ANSWER for now This was tough for me to get exactly right. Very little in the way of guidance via Google. I hope this helps others. As Dan Cornilescu pointed out, the handlers accept the first match. So we go from more specific to less specific. I've solved this by following the folder structure created by npm run build : 1. Handle sub-directories for js, css, and media. 2. Handle json and ico requests for manifest.json and fav.ico. 3. Route all other traffic to index.html. handlers: - url: /static/js/(.*) static_files: build/static/js/\1 upload: build/static/js/(.*) - url: /static/css/(.*)