I am trying to create a Skendton ZendFramework application on Openshift. I created a PHP5 application using these instructions and cloned it locally. I cloned the ZendFramework skeleton application in the repository, and then ran Composer to install the dependencies locally.
Then I moved my repository to Openshift, but I got the following error message:
Fatal error: Uncaught exception 'RuntimeException' with message
'Unable to load ZF2. Run `php composer.phar install`
or define a ZF2_PATH environment variable.' in
/var/lib/openshift/559d4d8f500446844700002b/app-
root/runtime/repo/init_autoloader.php:51 Stack trace:
/var/lib/openshift/559d4d8f500446844700002b/app-
root/runtime/repo/public/index.php(18): require()
/var/lib/openshift/559d4d8f500446844700002b/app-
root/runtime/repo/init_autoloader.php on line 51
which indicates that I need to run Composer on Openshift. How to achieve this?
In my local repository, the directory is /vendorpopulated with dependency directories. However, /vendorignored in commit. I could try to commit and push it, but is this the right way? It does not look clean.