Question

I would like to git push two projects (using the Laravel and Kohana frameworks) to Openshift. Does Openshift support these frameworks? I did not see these frameworks in any of Openshift's cartridges (I only saw CakePHP and CodeIgniter). Is there a way to get these frameworks working on Openshift?

Was it helpful?

Solution

Please check the answer here: https://www.openshift.com/forums/openshift/kohana-and-laravel-on-openshift

Excerpt from the Openshift resource:

With the Laravel quickstart on github, you should be able to do the following: Create a php-5.3 application and attach mongodb to it:

rhc app create -a laravelapp php-5.3 mongodb-2.2

Add this upstream laravelapp repo:

cd laravelapp
git remote add upstream -m master https://github.com/stikmanw/openshift-laravel-mongo
git pull -s recursive -X theirs upstream master 

Then push the repo upstream:

git push

Note that similar steps can be done for any github repo that matches the directory structure of the cartridge you're using. But the github README usually contains these steps specifically (just like mediawiki-example: https://github.com/openshift-quickstart/mediawiki-example)

With Kohana, you should be able to use any cartridge you want. With the php-5.3 cartridge, you can try suggestions here: Installing Kohana on OpenShift?

E.g., place all kohana files into your repo/php/ directory, then do a git add/commit/push. That's because repo/php/ is considered your application's webroot dir.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top