-
Notifications
You must be signed in to change notification settings - Fork 674
Installation OpenShift
Matěj Cepl edited this page Jan 3, 2014
·
4 revisions
OpenShift is the PaaS service by RedHat combining completely open platform (there are no site specific APIs, just run your standard PHP/Python/Ruby/etc./orwhatever-else app in virtual environment) with possibility to upgrade to the professionally supported platform. However, the basic account (with three gears and without autoscaling) is free and there is no push to upscale you without reason.
Whole configuration is highly git-centric. You get a git repo in the system and everything is pushed to the server via git.
- Create OpenShift application in normal way. You need plain PHP, MySQL, and Cron cartridges enabled. For more instructions about creating a new app on OpenShift see helpful documentation . Record somewhere all database administration details required later.
- fork Gina’s repository
- Then do these steps
rm -rf php git submodule add https://github.com/youraccount/ThinkUp.git php # to clone your personal fork as php directory cd php ; git checkout -b configuration curl -L -o configuration.patch https://gist.github.com/mcepl/8236591/raw/gistfile1.diff git apply configuration.patch # modify webapp/config.inc.php (especially in the database area) to suit your needs # see https://www.thinkup.com/docs/install/advancedconfig.html for more git add -A . git commit -m 'Configuration changes' git push -u origin configuration # for later updates; remember, you need to rebase your changes on the top of the current code, not merge git remote add upstream https://github.com/ginatrapani/ThinkUp.git cd .. git add -A . # notice, we want our OpenShift repo point to OUR branch in our fork, NOT to the Gina’s repo git commit -m 'ThinkUp included as a submodule' git push
Now the instance should be up and running, follow the User Guide for more.