How to construct a app.yaml file?

1 view
Skip to first unread message

user2123424 via StackOverflow

unread,
Sep 19, 2015, 1:39:13 PM9/19/15
to google-appengin...@googlegroups.com

Here's mine, it may help. Pcode is just one of my folders (not sure if you need to define folders but I just left it there anyway):

application: theclearview1
version: 10
runtime: php
api_version: 1

handlers:
- url: /(.*\.(htm$|html$|css$|js$))
  static_files: \1
  upload: (.*\.(htm$|html$|css$|js$))
  application_readable: true

- url: /css
  static_dir: css

- url: /js
  static_dir: js

- url: /(.*\.(ico$|jpg$|png$|gif$))
  static_files: \1
  upload: (.*\.(ico$|jpg$|png$|gif$))
  application_readable: true

- url: /Pcode/(.+)
  script: Pcode/\1

- url: /(.+)
  script: \1

- url: /.*
  script: index.php

Basically, I think the following lines will run similar to a regular php host like hostgator, godaddy etc.:

handlers:
- url: /(.*\.(htm$|html$|css$|js$))
  static_files: \1

  upload: (.*\.(htm$|html$|css$|js$))
  application_readable: true

- url: /(.*\.(ico$|jpg$|png$|gif$))
  static_files: \1

  upload: (.*\.(ico$|jpg$|png$|gif$))
  application_readable: true

- url: /(.+)
  script: \1

- url: /.*
  script: index.php


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/17620667/how-to-construct-a-app-yaml-file/17689157#17689157
Reply all
Reply to author
Forward
0 new messages