Download - Joomla! on Heroku
Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Joomla!on HerokuJoomla!
on Heroku
Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Wha t is Heroku?Wha t is Heroku?Platform-as-a-Service for numerous languages (Ruby, Python, PHP)
Integrated with Git for deployment
Once learned, easy to setup and maintain
Cool add-ons (Redis, MongoDB, ElasticSearch, Sphinx, Papertrail, Mailgun, Mandrill, New Relic, etc)
Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
SSH c onfi g ura t i onSSH c onfi g ura t i onGenerate a SSH public key:
$ ssh-keygen -t dsa
Copy SSH public key to Heroku account-settings
Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
I nsta l l Heroku too lbe ltInsta l l Heroku too lbe l tFollow Heroku instructions:https://toolbelt.heroku.com/
CentOS Linux installation:
$ yum install rubygem-heroku
$ heroku login
Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
GitHub repos itoryGitHub repos itoryCreate a GitHub repository (public or private)
Clone it locally, add the GitHub upstream and create a Heroku branch:
$ cd /YOUR/GITHUB/REPOS
$ git clone [email protected]:USER/REPO.git
$ cd REPO
$ git remote add upstream [email protected]:USER/REPO.git
$ git checkout -b heroku
$ heroku create --stack cedar REPO
Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
PHP testPHP testCreate an index.php file with phpinfo():
$ cd /YOUR/GITHUB/REPOS/REPO
$ echo '<?php echo phpinfo();' > index.php
Git and push to Heroku:
$ git add index.php
$ git commit -m 'phpinfo() test'
$ git push heroku heroku:master
Visit site:
http://REPO.herokuapp.com/
Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
A dd ing MySQLA dd ing MySQLGet your own database:
VPS with MySQL database and hole in firewall
Amazon RDS or Amazon EC2
Get a Heroku app-based database (billing verification needed)
ClearDB MySQL (free upto 5Mb)
Xeround MySQL (free upt 10Mb, 5 connections)
Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo
Bu i ldpacksBu i ldpacksBuildpack gives support for specific programming language (binaries, configuration-files, wrapped in Heroku jail)
Default buildstack Cedar offers basic PHP-support“ ”https://github.com/heroku/heroku-buildpack-php
https://github.com/ryanbrainard/heroku-buildpack-phing
https://github.com/andrewsg/heroku-buildpack-php-foundry
$ heroku config:add BUILDPACK_URL=https://github. com/heroku/heroku-buildpack-php