Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated README with instructions.
  • Loading branch information
Daniel Mikusa committed Jun 7, 2014
1 parent 5fba50f commit 7688048
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Expand Up @@ -8,14 +8,16 @@ This is a very simple tutorial to understand the basis of work with Phalcon.

Check out a explanation article: http://phalconphp.com/documentation/tutorial

Get Started
-----------
Running on CloudFoundry
=======================

#### Requirements
Here are the changes for running the standrd Phalcon Tutorial app on CloudFoundry.

To run this application on your machine, you need at least:
- Pull credentials from VCAP_SERVICES (use json_decode), setup \Phalcon\Db\Adapter\Pdo\Mysql or other with them.
- Remove `.htaccess` files. These are not needed with the [cf-php-build-pack].
- Add a manifest.yml file. Not strictly necessary, but makes pushing easier.
- Add a `.bp-config/options.json` file. This is necessary to enable the phalcon extension.
- Add `.bp-config/httpd/extra/httpd-php.conf` to override the build pack's default HTTPD's PHP configuration with one that will provide us with pretty url's for Phalcon. This is essentially the rules that were in the `.htaccess` files combined into this file (with some slight adjustments).

* PHP >= 5.3.11
* Apache Web Server with mod rewrite enabled
* Phalcon PHP Framework extension enabled (0.5.x)

[cf-php-build-pack]: https://github.com/dmikusa-pivotal/cf-php-build-pack

0 comments on commit 7688048

Please sign in to comment.