google app engine - Static_dir working locally on Development sever not in Production - PHP GAE 1.8.2 -
i getting following error logs in production server on php version of gae
static file referenced handler not found: stylesheets/it%20issue/style.css static file referenced handler not found: scripts/it%20issue/script.js static file referenced handler not found: scripts/it%20issue/jquery.min.js
but not these errors when run them locally using
d:\python\python.exe d:/google_appengine_1.8.2/google_appengine/dev_appserver.py --php_executable_path=d:\php\php-cgi.exe .
here part app.yaml file
handlers: - url: /stylesheets/ static_dir: stylesheets/ - url: /images/ static_dir: images/ - url: /scripts/ static_dir: scripts/
and here part of php file calls these files.
<?php <html lang="en"> <head> <meta charset="utf-8" /> <title>secured page</title> <link rel="stylesheet" type="text/css" href="/stylesheets/it issue/style.css" /> <script type="text/javascript" src="/scripts/it issue/jquery.min.js"></script> <script type="text/javascript" src="/scripts/it issue/script.js"></script> </head> <body>
i did few searches here , said out caps may allow run locally not in production. here actual file locations. not think have case sensitive problem.
"d:\google_php\stylesheets\it issue\style.css" "d:\google_php\scripts\it issue\script.js" "d:\google_php\scripts\it issue\jquery.min.js"
i don't think did wrong. have second opinion or corrected can keep learning stuff.
Comments
Post a Comment