app.yaml

AppEngine app.yaml config for single page apps

你说的曾经没有我的故事 提交于 2019-12-22 10:09:41
问题 I'm having trouble with my app.yaml file - I have a single-page app (Angular2 app) on AppEngine with a python runtime, but the deep links aren't appropriately routed. Here's my app.yaml file: runtime: python27 api_version: 1 threadsafe: true skip_files: - ^(.*/)?app\.yaml - ^(.*/)?app\.yml - ^(.*/)?#.*# - ^(.*/)?.*~ - ^(.*/)?.*\.py[co] - ^(.*/)?.*/RCS/.* - ^(.*/)?\..* - ^(.*/)?tests$ - ^(.*/)?test$ - ^test/(.*/)? - ^COPYING.LESSER - ^README\..* - \.gitignore - ^\.git/.* - \.*\.lint$ -

Define query param in app.yaml in Google Appengine

余生长醉 提交于 2019-12-21 17:54:16
问题 I would like to serve static files depending on the query parameter. More specificly I would like to serve prerendered snapshots for search engine optimalization. The pages are hosted on Google Appengine, so I'm using app.yaml to define these urls. handlers: # Consider anything matching a dot static content. - url: /(.*\..*)$ static_files: dist/\1 upload: dist/(.*\..*)$ # Serve snapshots for seo - url: /?_escaped_fragment_=(.*) static_files: dist/snapshots/\1 upload: dist/(.*)$ # Otherwise

App Engine throws 404 Not Found for any path but root

♀尐吖头ヾ 提交于 2019-12-20 06:43:17
问题 I want to split my App Engine implementation into several files. So I wrote in my app.yaml file: runtime: python27 api_version: 1 threadsafe: true handlers: - url: /imageuploader script: imageuploader.app - url: /search script: main.app - url: / static_files: index.html upload: index.html libraries: - name: MySQLdb version: "latest" Basically I search and image upload to be on different paths and root path to have index file. Here are my handlers: main.py: class MainPage(webapp2

How to upload a Google App Engine (Go) project in a different folder than the app.yaml

╄→尐↘猪︶ㄣ 提交于 2019-12-20 06:09:36
问题 My project has the following structure: | appengine |---- app.yaml |---- myScript.go | bower_components |----|... | build |----|images |----|----|branding |----|----|---- favicon.ico |----|styles |----|----|*.css |----|index.html | src | ... I would like to upload the entire content of the build folder when running goapp deploy appengine . My app.yaml looks like this: application: myProject version: 0-1 runtime: go api_version: go1 handlers: - url: /(.*\.(gif|png|jpg|ico|js|css)) static_files

Deploying basic Angular 2 app to Google App Engine

只愿长相守 提交于 2019-12-17 10:34:32
问题 I can use Angular 2 to create basic front-end applications and can use python to create back-ends with endpoints on Google App engine. I can't however seem to figure out how to put the two together and deploy them with the cloud SDK. Here is a basic example where I can't even host a simple angular2 app with no back-end calls on GAE. I have taken the dist folder after building with angular2 CLI and tried to connect to it with the app.yaml file. It seems to work in the browser developer (dev

How to reference nested requires in app.yaml for App Engine PHP

馋奶兔 提交于 2019-12-13 04:59:17
问题 I have a index.php with a require 'myfolder/folder/lib1.php'; So in app.yaml I reference: - url: /myfolder/folder/lib1.php script: myfolder/folder/lib1.php but this lib1.php does another require 'lib2.php'; at same folder level /myfolder/folder/ . So it trows error 500 because it can't find lib2.php . How can I properly reference them both in app.yaml? 回答1: Your app.yaml file is for routing requests from incoming URLs to the initial script you want to use to process the request. You don't

App Engine PHP upload file

时光怂恿深爱的人放手 提交于 2019-12-13 04:29:19
问题 I'm trying to figure out how to upload my files correctly to Google App Engine. Everything works if I declare a handler for a static directory named images - there's no upload statement needed - but if I try to use regex to upload only web graphics, the files (evidently) aren't uploaded. Here's my app.yaml: application: static-files-demo-999 version: 1 runtime: php api_version: 1 handlers: - url: /styles static_dir: styles - url: /images/(.*\.(gif|png|jpg)) static_files: static/images/\1

app.yaml file mistake : Call to undefined function curl_init()

别说谁变了你拦得住时间么 提交于 2019-12-12 06:55:37
问题 I can't find the simple mistake in my app.yaml file.,, I am a new in python and google app engine ,,, when i run or deploy it works and css folder work ,but when I click to send post to getvideo.php ,, I think it is a problem in definition of curl.php Because it gives me :- Fatal error: Call to undefined function curl_init() in C:\Users-----\Desktop\YTD\curl.php on line 9 this my app.yaml application: isdarat-is version: 2 runtime: php api_version: 1 handlers: - url: / script: index.php - url

Why is GAE dev_appserver only setting ETag, but not Expires HTTP header?

自古美人都是妖i 提交于 2019-12-12 03:03:24
问题 File & Folder Structure I have the following directory structure. [app_root] | |---[static] | |--- [css] |--- [img] |--- [js] |--- [app] |--- [libs] |--- main.js |--- require.js App.yaml The app.yaml config for static_dir handlers are set to different expiration time. application: my-app-name version: 1 runtime: python27 api_version: 1 threadsafe: true default_expiration: "10d" handlers: - url: /favicon\.ico static_files: static/img/favicon.ico upload: static/img/favicon\.ico expiration:

Clear appEngine Flex static files cache

隐身守侯 提交于 2019-12-11 02:53:54
问题 I set a cache-control on my server of 1 year. How to say to the AppEngine "clear !" to take a new version from the server ? The configuration is Flex custom environment runtime: custom env: flex env_variables: writecontrolEnv: 'prod' handlers: - url: /.* script: this field is required, but ignored service: gateway-prod automatic_scaling: min_num_instances: 1 max_num_instances: 2 resources: cpu: 1 memory_gb: 2 disk_size_gb: 10 skip_files: - node_modules/ network: instance_tag: gateway 回答1: