基本上我是新來的谷歌應用程序引擎的靜態文件,我有一個名爲Templates文件夾中,我有幾個文件:如何服務的谷歌應用程序引擎
index.php
result.php
request.php
但是在yaml.app我只想通過製作templates/index.php默認頁面來了解如何在本地運行服務器。 我的意思是當我去http://localhost:8080
這是我所看到的。但是當我做http://localhost:8080/templates/index.php
它說404沒有找到。 如何在我的應用程序內的任何目錄中使用我想要的所有文件,是否應添加到我的app.yaml中的某種規則?
下面是使用當前的app.yaml IM:
application: sympy-live-hrd
version: 38
runtime: python27
threadsafe: true
api_version: 1
libraries:
- name: numpy
version: latest
- name: matplotlib
version: latest
handlers:
- url: /static
static_dir: static
expiration: 1d
# cache-busting scheme
# request /static-(app version)/filename
- url: /static-[0-9]+/(.*)
static_files: static/\1
upload: static/(.*)
# if you're adding the shell to your own app, change this regex url to the URL
# endpoint where you want the shell to run, e.g. /shell . You'll also probably
# want to add login: admin to restrict to admins only.
- url: .*
script: shell.application
的Shell.application是我編輯使用模板/ index.php文件默認
https://developers.google.com/appengine/docs/python/gettingstartedpython27/staticfiles –
我已經是紅色的文檔,但我仍然困惑如何實現它。 –
與**完全相同** –