Skip to content

Commit f63958a

Browse files
committed
Updating instructions
1 parent e13b527 commit f63958a

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,26 @@ This cartridge can be used as a base to develop PHP applications relying on PHP
1111
5. Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/)
1212
6. Click the last link to start the build, it will take about an hour
1313
7. Clone the application's repository locally (or pull changes if you have already cloned it)
14-
8. Starting coding your PHP application
14+
8. Rename the `_build file` to `build` in the `/.openshift/action_hooks/` directory to activate Composer
15+
9. Commit this file
16+
10. Make it executable with `git update-index --chmod=+x .openshift/action_hooks/build`
17+
11. Commit this file again and push it too.
18+
9. Starting coding your PHP application
1519

1620
## Using a PHP Framework
1721

1822
To demonstrate the usage of Composer, we will install the ZendFramework skeleton application:
1923

2024
1. Delete the `index.cgi` file in the `/public` directory
21-
2. Download the ZendFramework skeleton application as a `.zip` file from https://github.com/zendframework/ZendSkeletonApplication
22-
3. Unzip this file at the root of your git repository (i.e., the content of `/public` in the `.zip` must be poured in your local `/public` directory)
23-
4. Commit and push all modifications
24-
5. During the git push, Composer will download all dependencies found in `composer.json`
25-
6. Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/)
25+
2. Rename the `_build file` to `build` in the `/.openshift/action_hooks/` directory if you have not done so already
26+
3. Commit this file
27+
4. Make it executable with `git update-index --chmod=+x .openshift/action_hooks/build`
28+
5. Commit this file again and push it too
29+
6. Download the ZendFramework skeleton application as a `.zip` file from https://github.com/zendframework/ZendSkeletonApplication
30+
7. Unzip this file at the root of your git repository (i.e., the content of `/public` in the `.zip` must be poured in your local `/public` directory)
31+
8. Commit and push all modifications
32+
9. During the git push, Composer will download all dependencies found in `composer.json`
33+
10. Visit your application's main page (e.g. https://myapp-mydomain.rhcloud.com/)
2634

2735
A similar procedure can be used for other PHP frameworks.
2836

0 commit comments

Comments
 (0)