Questions tagged [app.yaml]

app.yaml is a configuration file for Google App Engine applications.

With app.yaml, you can configure your App Engine application. For Java apps, it allows you to configure your application more easily, and with fewer files, than with the standard web.xml configuration. You can use app.yaml as long as your application does not need to be portable to other Java application servers.

Source: developer.google.com (Java Application Configuration Using app.yaml)

309 questions
3
votes
2 answers

Google Cloud App Engine app.yaml php72 issue with routing

I have a core php website and this is my current configuration of app.yaml runtime: php72 handlers: # Serve a directory as a static resource. - url: /assets static_dir: assets - url: /css static_dir: css - url: /js static_dir: js - url:…
Shreejibawa
  • 1,772
  • 1
  • 22
  • 33
3
votes
2 answers

app.yaml settings for uploading static files

I'm facing issues with app.yaml settings of my Python App Engine web application. Somehow except index.html rest of the static files (javascript, CSS and HTML) which I have in my application are not getting deployed to the app engine. I have tried…
b.sodhi
  • 93
  • 2
  • 7
3
votes
1 answer

Deploy python script on google cloud platform

I'm figuring out how to deploy my script on google cloud platform. ive already made a directory or folder that contains the script.pyand all the libraries in /lib folder. what i dont get is setting up my app.yaml to run script.py (python 2.7) and…
Boneyflesh
  • 323
  • 1
  • 4
  • 16
3
votes
3 answers

Adding HSTS headers in app.yaml (Google App Engine)

I have the following handlers section in my app.yaml: handlers: - url: /(robots\.txt|sitemap\.xml) static_files: \1 upload: (robots\.txt|sitemap\.xml) secure: always http_headers: Strict-Transport-Security: 'max-age=63072000;…
hjpotter92
  • 71,576
  • 32
  • 131
  • 164
3
votes
3 answers

How could I validate a YAML structure in java programming

I have a YAML file in my directory and I want to validate the YAML file was in correct structure using java programming. In online it having lot of YAML checker but I want to validate that on java programming.
3
votes
1 answer

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

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…
Aaron
  • 586
  • 6
  • 22
3
votes
1 answer

Google App Engine & Polymer | Configuration

I'm developing a web application on Google App Engine using Python, I understand how to use basically the app.yaml and manage the different files; now I'd like to upgrade my application and use Polymer. The root folder has this…
3
votes
3 answers

How do I test app.yaml skip_files regexps are working correctly with App Engine?

I have an app.yaml skip_files element as so: skip_files: - ^(.*/)?#.*#$ - ^(.*/)?.*~$ - ^(.*/)?.*\.py[co]$ - ^(.*/)?.*/RCS/.*$ - ^(.*/)?\..*$ How can I list exactly what files are being skipped? I am using OSX so my find util does not have extended…
Dan
  • 3,966
  • 5
  • 28
  • 50
3
votes
3 answers

What does the RewriteRule in .htaccess convert to in an app.yaml file?

How do I convert this .htaccess file to an app.yaml file? Here is the .htaccess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(?!.*?public).* index.php [QSA,L] I need to do this to run an app using PHP on Google App…
Alan Wells
  • 27,268
  • 14
  • 81
  • 128
3
votes
1 answer

To host a static (HTML) website on Google App Engine, what should be in the app.yaml file?

Can I use this for uploading HTML pages? app.yaml contents: application: visualvidya version: 1 runtime: python api_version: 1 handlers: - url: /(.*\.(gif|png|jpg|ico|js|css)) static_files: \1 upload: (.*\.(gif|png|jpg|ico|js|css))
visualvidya
  • 43
  • 1
  • 4
3
votes
2 answers

Upload attribute Google App Engine - app.yaml

I'm redirecting everything to a single file in my app.yaml like so - url: /.* script: frontcontroller.application but I still have to use robots.txt, which causes an error when I do - url: /robots.txt static_files: robots.txt - url: /.* …
KaekeaSchmear
  • 1,388
  • 4
  • 16
  • 28
3
votes
1 answer

Google App Engine (Python) app.yaml urlhandler doesn't work

I'm trying google app engine with python27. handlers: - url: /favicon\.ico static_files: favicon.ico upload: favicon\.ico - url: /hello script: helloworld.app - url: /.* script: main.app helloworld.py and…
Babeler
  • 45
  • 1
  • 6
3
votes
1 answer

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

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…
3
votes
2 answers

App Engine ignores my source-code-updates and my app.yaml file

I have my AppEngine app running fine with the development server on my desktop machine, but I cannot get the version on Google's server to pay attention to my source code updates. Here is the most telling illustration. My app.yaml file started…
Iron Pillow
  • 1,992
  • 4
  • 15
  • 28
2
votes
1 answer

Google Appengine: app.yaml basic_scaling strange behavior

I have a very basic app.yaml file. When I deploy the file with this in it: basic_scaling: #max_instances: 11 #idle_timeout: 10m #instance_class: B1 everything works. If I un-comment out instance_class: B1 I get the error "class B1 only…
psalm 4610
  • 21
  • 2
1 2
3
20 21