Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Css Js not loading #51

Open
naeemshah opened this issue Sep 28, 2015 · 1 comment
Open

Css Js not loading #51

naeemshah opened this issue Sep 28, 2015 · 1 comment

Comments

@naeemshah
Copy link

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

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

but css , js files are not loading

@Kivylius
Copy link

Kivylius commented Nov 5, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants