php - Symfony project not working on Google App Engine Launcher -
i'm following instructions here in order deploy symfony project in google app engine, hello world example not working in local computer using google app engine launcher neither in cloud (it working in localhost xampp).
the app.yaml file is:
# copyright 2015 google inc. rights reserved. application: myprojectid version: 1 runtime: php55 api_version: 1 threadsafe: true handlers: - url: /clear_cache script: clear_cache.php login: admin - url: /.* script: web/app.php env_variables: cache_dir: "gs://#default#/symfony/cache" log_dir: "gs://#default#/symfony/log"
the config_prod.yml file is:
# copyright 2015 google inc. rights reserved. imports: - { resource: config.yml } #framework: # validation: # cache: apc doctrine: dbal: driver: pdo_mysql host: null port: null dbname: hello user: root password: null unix_socket: /cloudsql/myprojectid:helloworldinstance charset: utf8 orm: auto_generate_proxy_classes: "%kernel.debug%" auto_mapping: true metadata_cache_driver: apc result_cache_driver: apc query_cache_driver: apc # force monolog use syslog monolog: handlers: syslog: type: syslog level: debug
the log launcher throw this:
2015-08-24 19:59:38 running command: "['c:\\python27\\python.exe', 'c:\\program files (x86)\\google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', 'c:\\xampp\\htdocs\\symfony-standard']" info 2015-08-24 19:59:43,378 devappserver2.py:763] skipping sdk update check. info 2015-08-24 19:59:43,608 api_server.py:205] starting api server at: http://localhost:54278 info 2015-08-24 19:59:43,612 dispatcher.py:197] starting module "default" running at: http://localhost:8080 info 2015-08-24 19:59:43,615 admin_server.py:118] starting admin server at: http://localhost:8000 info 2015-08-24 19:59:46,928 module.py:808] default: "head /_ah/gcs/app_default_bucket/symfony/cache/classes.map http/1.1" 404 - info 2015-08-24 19:59:46,954 module.py:808] default: "get /_ah/gcs/app_default_bucket?delimiter=%2f&max-keys=1000&prefix=symfony%2fcache%2fclasses.map http/1.1" 200 139 info 2015-08-24 19:59:46,983 module.py:808] default: "head /_ah/gcs/app_default_bucket/symfony/cache/appprodprojectcontainer.php http/1.1" 404 - info 2015-08-24 19:59:47,010 module.py:808] default: "get /_ah/gcs/app_default_bucket?delimiter=%2f&max-keys=1000&prefix=symfony%2fcache%2fappprodprojectcontainer.php http/1.1" 200 139 info 2015-08-24 19:59:47,036 module.py:808] default: "head /_ah/gcs/app_default_bucket/symfony/cache http/1.1" 404 - info 2015-08-24 19:59:47,073 module.py:808] default: "get /_ah/gcs/app_default_bucket?delimiter=%2f&max-keys=1000&prefix=symfony%2fcache http/1.1" 200 203 info 2015-08-24 19:59:47,128 module.py:808] default: "post /_ah/gcs/app_default_bucket/_ah_is_writable_temp_file http/1.1" 201 - info 2015-08-24 19:59:47,160 module.py:808] default: "head /_ah/gcs/app_default_bucket/symfony/log http/1.1" 404 - info 2015-08-24 19:59:47,181 module.py:808] default: "get /_ah/gcs/app_default_bucket?delimiter=%2f&max-keys=1000&prefix=symfony%2flog http/1.1" 200 201 error:root:php failure (255) with: stdout: status: 500 internal server error x-powered-by: php/5.5.26 content-type: text/html info 2015-08-24 19:59:47,573 module.py:808] default: "get / http/1.1" 500 -
it seems problem permissions of cache , log folders, i'm not sure. ideas?
are sure google app engine default bucket in cloud storage created?
https://cloud.google.com/appengine/docs/php/googlestorage/setup
i suggest adding following static handlers app.yaml
:
- url: /favicon.ico mime_type: image/x-icon static_files: web/favicon.ico upload: web/favicon.ico - url: /bundles static_dir: web/bundles
Comments
Post a Comment