Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yandod/cakephp-heroku-plugin

This Plugin helps reading configuration from heroku config vars.
https://github.com/yandod/cakephp-heroku-plugin

Last synced: 3 months ago
JSON representation

This Plugin helps reading configuration from heroku config vars.

Awesome Lists containing this project

README

        

# 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.