Saturday, November 30, 2013

Using Static Files in Google app engine PHP SDK and uploading the application

This helloworld.zip file contains a simple PHP Google app engine application. The purpose of the application is to demonstrate how to configure the app.yaml to serve static files. In this case, the static file we are using are:

  • main.css
  • demo.js
  • movie.mp4
  • images.jpg
And the app.yaml looks like:

application: clever-tracker-416

version: 1

runtime: php
api_version: 1

handlers:

- url: /images
  static_dir: images

- url: /stylesheets
  static_dir: stylesheets

- url: /js
  static_dir: js

- url: /videos
  static_dir: videos

- url: /
  script: helloworld.php

- url: /next\.php
  script: next.php


No comments:

Post a Comment