This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

CakePHP skeleton app for Paas / Heroku

0.1.4 2015-07-10 02:46 UTC

This package is not auto-updated.

Last update: 2021-11-27 03:06:14 UTC


This is a fork of CakePHP Application Skeleton.

A skeleton for creating applications with CakePHP 3.0.

The framework source code can be found here: cakephp/cakephp.


  1. Download Composer or update composer self-update.
  2. Run php composer.phar create-project --prefer-dist thegallagher/cakephp-app-paas [app_name].

If Composer is installed globally, run

composer create-project --prefer-dist thegallagher/cakephp-app-paas [app_name]

You should now be able to visit the path to where you installed the app and see the setup traffic lights.


Configuration is done with environment variables or in config/.env. You can read config/.env for information on the available variables.

If you followed the above installation instructions to create your project, you will be asked to create config/.env. If you were not in interactive mode, you will need to use environment variables or cp config/default.env config/.env.

You may use any of the constants in config/paths.php by prefixing and suffixing the constant with two underscores (__). Eg. To use the LOGS constant, write __LOGS__ in the environment variable.

Deploying to Heroku

Make sure you have the Heroku toolbelt installed and logged in.

If you haven't already, create your repository:

git init
git add -A
git commit -m "Initial commit"

Create the app:

heroku apps:create
git push heroku master
heroku config:set SECURITY_SALT=[your-security-salt]

Create a MySQL database:

heroku addons:create cleardb
old_db_url=`heroku config:get CLEARDB_DATABASE_URL`
heroku config:set DATABASE_URL="$old_db_url"

Configure logs:

heroku config:set LOG_URL="console:///?levels[]=notice&levels[]=info&levels[]=debug"
heroku config:set LOG_ERROR_URL="console:///?levels[]=warning&levels[]=error&levels[]=critical&levels[]=alert&levels[]=emergency"


  • If you require multiple instances of your web process, you will need to configure your sessions to use database or cache.