This repository is designed to be used with https://www.openshift.com applications. To use, just follow the quickstart below.
-
Create an account at https://www.openshift.com
-
Create a php application with mysql:
$ rhc app create mediawiki php-5.4 mysql-5.5
-
Add this upstream mediawiki repo
$ cd mediawiki $ git remote add upstream -m master git://github.com/openshift-quickstart/mediawiki-example.git $ git pull -s recursive -X theirs upstream master
-
Then push the repo upstream
$ git push
-
That's it, you can now checkout your application at: http://mediawiki-$yourlogin.rhcloud.com
-
Default Admin Username: Admin Default Password: OpenShiftAdmin
In order to update or upgrade to the latest mediawiki, you'll need to re-pull and re-push.
-
Pull from upstream:
$ cd mediawiki/ $ git pull -s recursive -X theirs upstream master
-
Push the new changes upstream
$ git push
php/
- Externally exposed php code goes here
libs/
- Additional libraries
misc/
- For not-externally exposed php code
../data
- For persistent data
.openshift/pear.txt
- list of pears to install
.openshift/action_hooks/build
- Script that gets run every push, just prior to
starting your app
Please leave php, libs and data directories but feel free to create additional directories if needed.
Note: Every time you push, everything in your remote repo dir gets recreated please store long term items (like an sqlite database) in ../data which will persist between pushes of your repo.
A list of pears to install, line by line on the server. This will happen when the user git pushes.