Skip to content

Commit

Permalink
Update sample app to work in CI testing
Browse files Browse the repository at this point in the history
- Update README links
- manifest.yml is more general

[#128896127]
  • Loading branch information
sesmith177 authored and Anna Thornton committed Sep 14, 2016
1 parent 1f9ff4a commit 230710d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ Running on CloudFoundry

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

- [Pull credentials from VCAP_SERVICES](https://github.com/dmikusa-pivotal/cf-ex-phalcon/blob/master/public/index.php#L19) (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].
- [Pull credentials from VCAP_SERVICES](https://github.com/cloudfoundry-samples/cf-ex-phalcon/blob/master/public/index.php#L19) (use json_decode), setup \Phalcon\Db\Adapter\Pdo\Mysql or other with them.
- Remove `.htaccess` files. These are not needed with the [php-buildpack].
- 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).


[cf-php-build-pack]: https://github.com/dmikusa-pivotal/cf-php-build-pack
[php-buildpack]: https://github.com/cloudfoundry/php-buildpack
8 changes: 2 additions & 6 deletions manifest.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
---
applications:
- name: phalcon-demo
- name: cf-ex-phalcon
memory: 128M
instances: 1
host: phalcon-demo
path: .
buildpack: https://github.com/dmikusa-pivotal/cf-php-build-pack.git
services:
- mysql-db
env:
BP_DEBUG: "True"
- mysql

0 comments on commit 230710d

Please sign in to comment.