Tuesday, March 25, 2014

Getting start with CodeIgniter on OpenShift


CodeIgniter Framework

From the CodeIgniter website, "CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you're a developer who lives in the real world of multi-tenant hosting accounts and clients with deadlines, and if you're tired of ponderously large and thoroughly undocumented frameworks, CodeIgniter is right for you."
Here are several reasons why the CodeIgniter framework might be right for you:
  • You need a framework with a small footprint
  • You need exceptional performance
  • You need broad compatibility with standard hosting accounts that run a variety of PHP versions and configurations
  • You want a framework that requires nearly zero configuration
  • You want a framework that does not require you to use the command line
  • You don’t want to be forced to learn a templating language
  • You need clear, thorough documentation

 

Getting started with CodeIgniter on OpenShift

If you haven’t already created an OpenShift account, head on over to the website and get started.
Getting started with CodeIgniter on OpenShift is very quick and easy. I have created a quickstart guide on github that will walk you through the steps.

Step 1: Create a PHP application

rhc app create -a ci -t php-5.3

Step 2: Add database support

Issue the following command to embed and activate MySQL for your application.  At the time of this writing, we support MySQL, mongoDB, and postgreSQL as available datastores.
rhc app cartridge add -a ci -c mysql-5.1

Step 3: Download and install the CodeIgniter framework

cd ci
git remote add upstream -m master git://github.com/openshift/CodeIgniterQuickStart.git
git pull -s recursive -X theirs upstream master git push

Step 4: Start coding

For more information on how to begin using the CodeIgniter framework, head on over their excellent user guide which will walk you through the process.

No comments:

Post a Comment