Skip to content

yandod/cakephp-heroku-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

What is this?

This is CakePHP plugin for Heroku. You can run your app on Heroku environment with this plugin.

How to use

Plugin source and config vars are required for using this plugin. if you already added shared-database addon, just skip that command.

cd your_project
git submodule add https://github.com/yandod/cakephp-heroku-plugin.git app/Plugin/Heroku
touch app/Config/database.php
heroku config:add salt=YOUR_SALT_HERE
heroku config:add cipherSeed=YOUR_SEED_HERE
heroku addons:add shared-database
git add .
git commit -m "add heroku plugin"
git push heroku master

To load this plugin, add Plugin::load into your app/Config/bootstrap.php

CakePlugin::load('Heroku',array('bootstrap' => true));

I wanna manage database over CakePHP

heroku config:add LD_LIBRARY_PATH=/app/php/ext
heroku run bash
cd /app/www/app
 /app/bin/php ./Console/cake.php schema create

Todo

  • Schema migration.
  • log availability from heroku log command.

About

This Plugin helps reading configuration from heroku config vars.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages