GithubHelp home page GithubHelp logo

arthikgran's Introduction

Openshift Laravel Quickstart

This is an Openshift Quickstart for Laravel 4.

Installation on Openshift Online - Using PHP 5.3 and MySQL 5.5 Cartridges

When using this quickstart with Openshift Online, you should be aware that PHP 5.4 cartridges do not come bundled with PHP Mcrypt (but will be included soon) which is needed by Laravel 4 for password Hashing. As a temporary workaround, you will need to install the PHP 5.3 and MySQL 5.5 cartridges before installing this quickstart for Laravel (See example laravel install). You can use the web console or RHC cli

rhc create app laravel php-5.3
rhc cartridge add mysql-5.5 -a laravel

Installation on Openshift Origin - Using PHP 5.4 and MySQL 5.5 Cartridges

You will need to install the PHP 5.4 and MySQL 5.5 cartridges before installing this quickstart for Laravel. You can use the web console or RHC cli. Also be sure to install PHP 5.4 Mcrypt package/extension.

rhc create app laravel php-5.4
rhc cartridge add mysql-5.5 -a laravel

After installing PHP and MySQL cartridges, add the quickstart github repository and pull afterwhich you can push to your Openshift repository

git remote add upstream -m master [email protected]:muffycompo/openshift-laravel4-quickstart-app.git
git pull -s recursive -X theirs upstream master
NOTE: See After Openshift application creation for installing Laravel dependencies.

Installation on Openshift Origin - Using Openshift Origin Instant App

This Quickstart is also configured to utilize your Openshift Origin installation. To provide Laravel 4 as an instant app for Openshift Origin, you will need to modify /etc/openshift/quickstarts.json and add the following to the end of the file

{
	"quickstart": {
		"id": "10",
		"name": "Laravel 4",
		"website": "http://www.laravel.com",
		"initial_git_url": "git://github.com/muffycompo/openshift-laravel4-quickstart-app.git",
		"cartridges": ["php-5.4", "mysql-5.5"],
		"summary": "Laravel is a PHP web application framework with expressive, elegant syntax.",
		"tags": ["php", "instant_app", "framework", "mysql"],
		"admin_tags": []
	}
}

After Openshift application creation

You should remove the comment # in .openshift/actions_hooks/build by changing

#( unset GIT_DIR ; cd $OPENSHIFT_REPO_DIR ; php $OPENSHIFT_DATA_DIR/composer.phar -q --no-ansi install )

to become

( unset GIT_DIR ; cd $OPENSHIFT_REPO_DIR ; php $OPENSHIFT_DATA_DIR/composer.phar -q --no-ansi install )

Now using git

git add .
git commit -a -m 'Install Laravel 4 Composer Dependencies'
git push

Post Installation

After the installation of composer dependencies, Laravel 4 is ready to go. We have setup your database credentials app/config/database.php to use Openshift environment variables (OPENSHIFT*).

arthikgran's People

Contributors

kud360 avatar muffycompo avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.