Wednesday, January 23, 2013

PHP Cartridge and Laravel on OpenShift

Setup steps for PHP Cartridge on OpenShift.

Note: this step is a part of preparatory steps for Laravel on OpenShift.

1) Go to . Log in.

2) Create a new application.

3) Find PHP Web Cartridge. Select the cartridge.

4) Type a name for the application (e.g. laravel). Click Create.

5) Click on the name of the application ( e.g. the word 'laravel' in the red rectangle)

6) Take note of the ssh connection string. Copy the {GIT REPOSITORY CODE} below.

7) In Windows environment, run Command window.
cd laravel/

git add .
git commit -m "My changes"

If the server return the following error message:
*** Please tell me who you are.
  git config --global ""
  git config --global "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address...

Then type the code to set your name and email

  git config --global ""
  git config --global "Your Name"

Next, type
git push

When server replies:
Everything up-to-date
It means everything is already up-to-dateg

8) Download laravel package. Unzip the package.

9) Select the following files and folders.

10) Paste them to the laravel folder.

11) Select the contents of laravel master/public/


No comments:

Post a Comment