Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/yandod/cakephp-heroku-plugin
- Owner: yandod
- Created: 2012-06-11T14:03:53.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-11-11T09:36:01.000Z (about 12 years ago)
- Last Synced: 2024-05-29T23:17:47.206Z (6 months ago)
- Language: PHP
- Size: 96.7 KB
- Stars: 20
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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 masterTo 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.