Giter Site home page Giter Site logo

zf2appengine's People

Contributors

euphio avatar tommienu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zf2appengine's Issues

Threadsafe

Needed in app.yaml for Zend to work:

threadsafe: true

or (probably safer):

threadsafe: false

2 of 3 request error 500

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?

Documentation needed for gitignore files, or removal needed

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.

Deploying via git

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.