项目作者: gautamkrishnar

项目描述 :
OpenShift Grav Quickstart
高级语言: PHP
项目地址: git://github.com/gautamkrishnar/grav-openshift-quickstart.git


Grav on openshift

Grav is a Fast, Simple, and Flexible, file-based Web-platform. It follows similar principles to other flat-file CMS platforms, but has a different design philosophy than most. Grav comes with a powerful Package Management System to allow for simple installation and upgrading of plugins and themes, as well as simple updating of Grav itself.

More information can be found at: http://www.getgrav.org/

Install with one click

Create an account at http://openshift.redhat.com/

Click to install OpenShift

How to use

After installing you can login to admin console(still in beta) by pointing your browser to: http://grav-yourdomain.rhcloud.com/admin

  1. username:admin
  2. password:password

Don’t forget to change your password after logging in for the first time.

If you are experiencing any problems, please don’t forget to open a new issue in this repository.

Installing via the command line

Create a PHP application :

  1. rhc app create grav php-5.4

You can also use any other custom name instead of ‘grav’. Remember to use that app name in the next command

Add this upstream grav quickstart repo

  1. cd grav
  2. rm php/index.php
  3. git remote add upstream -m master git://github.com/gautamkrishnar/grav-openshift-quickstart.git
  4. git pull -s recursive -X theirs upstream master

Push the repo upstream to OpenShift

  1. git push

Head to your application at:

  1. http://grav-$yourdomain.rhcloud.com

To give your new Grav site a web address of its own, add your desired alias:

  1. rhc app add-alias -a grav --alias "$whatever.$mydomain.com"

Then add a cname entry in your domain’s dns configuration pointing your alias to $whatever-$yourdomain.rhcloud.com.

Spread the word

Liked using Grav in openshift! Don’t forget to spread the word by starring this repo.