Setup steps for PHP Cartridge on OpenShift.
Note: this step is a part of preparatory steps for Laravel on OpenShift.
1) Go to https://openshift.redhat.com . 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.
Type:
git clone {GIT REPOSITORY CODE}
cd laravel/
git add .
git commit -m "My changes"
If the server return the following error message:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "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 user.email "you@example.com"
git config --global user.name "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/
12)
No comments:
Post a Comment