tommienu / zf2appengine Goto Github PK
View Code? Open in Web Editor NEWZend Framework 2 on Google AppEngine
License: BSD 3-Clause "New" or "Revised" License
Zend Framework 2 on Google AppEngine
License: BSD 3-Clause "New" or "Revised" License
Needed in app.yaml for Zend to work:
threadsafe: true
or (probably safer):
threadsafe: false
Hello,
I install zend framework on GAE, but have some problems..
2 of 3 request are with error 500.
I only found warning:
A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. (Error code 204)
How can I fix this?
Suggest that the below is added to the documentation. For those using git to deploy this code to Google App Engine, zf2appengine fails to run and gives a fatal error stating that it can't find the files needed for the include paths. The reason for this is that the gitignore files exclude the zend framework from being uploaded to Google App Engine, so the files aren't there to include.
Error message (where <APP NAME HERE>
is the name of the app being run):
PHP Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to load ZF2. Run `php composer.phar install` or define a ZF2_PATH environment variable.' in /base/data/home/apps/<APP NAME HERE>/1.379676429172662644/init_autoloader.php:48
Stack trace:
#0 /base/data/home/apps/<APP NAME HERE>/1.379676429172662644/public/index.php(31): require()
#1 {main}
thrown in /base/data/home/apps/<APP NAME HERE>/1.379676429172662644/init_autoloader.php on line 48
Perhaps the gitignore files should be removed entirely and the onus should be on the developer using this repository to omit files as they feel fit? This would allow zf2appengine to run out of the box when using git to deploy to Google App Engine. If this is not a favoured option, suggest adding the below to README.md to help those in need to deploy.
If deploying via git, the following file needs deleting in order for the Zend framework files to be uploaded to Google App Engine:
vendor/.gitignore
And the root .gitignore file needs changing to the below (or you can just delete it):
nbproject
._*
.~lock.*
.buildpath
.DS_Store
.idea
.project
.settings
composer.lock
Note: The gitignore file located at data/cache/.gitignore should probably be left as it is. However, Google App Engine will never write to this folder as it is unable to write files to the local filesystem. Technically, this folder should never be used but it's likely good practice to remove the possibility of deploying cached files from your dev environment.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.