googlearchive / appengine-php-wordpress-starter-project

Starter project for running WordPress on Google Cloud Platform
366 stars 226 forks source link

Css Js not loading #51

Open naeemshah opened 8 years ago

naeemshah commented 8 years ago

i have want to run wordpress on root so i have the below

but css , js files are not loading

Kivylius commented 8 years ago

I running my installation on root and have this.

handlers:
- url: /(.*\.(htm|html|css|js))$
  static_files: wordpress/\1
  upload: wordpress/.*\.(htm|html|css|js)$
  application_readable: true
- url: /wp-content/(.*\.(ico|jpg|jpeg|png|gif|woff|woff2|ttf|otf|eot|svg|mp4))$
  static_files: wordpress/wp-content/\1
  upload: wordpress/wp-content/.*\.(ico|jpg|jpeg|png|gif|woff|woff2|ttf|otf|eot|svg|mp4)$
  application_readable: true
- url: /(.*\.(ico|jpg|jpeg|png|gif|woff|woff2|ttf|otf|eot|svg))$
  static_files: wordpress/\1
  upload: wordpress/.*\.(ico|jpg|jpeg|png|gif|woff|woff2|ttf|otf|eot|svg)$
  application_readable: true
- url: /wp-includes/images/media/(.*\.(ico|jpg|jpeg|png|gif|woff|woff2|ttf|otf|eot|svg))$
  static_files: wordpress/wp-includes/images/media/\1
  upload: wordpress/wp-includes/images/media/.*\.(ico|jpg|jpeg|png|gif|woff|woff2|ttf|otf|eot|svg)$
  application_readable: true

This works for me in live development. Wordpress should always be in wordpress folder and the app.yaml on the root.