diff --git a/README.md b/README.md index 654f468..5b95762 100644 --- a/README.md +++ b/README.md @@ -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