I have create an app in php. The folder "myapp-test-1" has a file called index.php and a folder CSS which includes the file main.css which is the css file for index.php .I am trying to create my app yaml file in order to upload my project in google's app engine. This is my app.yaml file:
application: myapp-test-1
version: 1
runtime: php
api_version: 1
handlers:
- url: /.*
script: index.php
- url: /css
static_dir: css
- url: /css/
script: main.css
when test it in browser it seems that index.php file is not full loaded. Moreover the css for index.php is not working.
You need to have the
last, because if you have it first, the order in which GAE will read this file is this, then the other two css ones. The regex
.*
next tourl
says that all URLs will lead toindex.php
, so putting this last will allow GAE to read the css ones first. You also don't need to includeif you're only going to load the css files in your index.php.
So overall, it should look like