Joomla! on Heroku

8

Click here to load reader

Transcript of Joomla! on Heroku

Page 1: Joomla! on Heroku

Presentation “Joomla! on Heroku” - http://slideshare.net/yireoJisse Reitsma ([email protected]) - Twitter @yireo

Joomla!on HerokuJoomla!

on Heroku

Page 2: Joomla! 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)

Page 3: Joomla! on Heroku

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

Page 4: Joomla! on Heroku

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

Page 5: Joomla! on Heroku

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

Page 6: Joomla! on Heroku

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/

Page 7: Joomla! on Heroku

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)

Page 8: Joomla! on Heroku

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