heroku-buildpack-tdiary

by tdiary

GitHub Readme.md

Heroku Buildpack: tDiary

This is a Heroku buildpack for tDiary application. It designed to use with the heroku official ruby buildpack.

Usage

Automatically build and deploy

'Deploy to Heroku' Button is enabled.

Deploy

Manually build and deploy

Clone tDiary repository.

$ git clone https://github.com/tdiary/tdiary-core

Create your tDiary instance on heroku.

$ cd tdiary-core
$ heroku create
$ heroku addons:create sendgrid
$ heroku addons:create memcachier
$ heroku addons:create mongolab
$ heroku config:set TWITTER_KEY=YOUR_TWITTER_KEY
$ heroku config:set TWITTER_SECRET=YOUR_TWITTER_SECRET
$ heroku config:set TWITTER_NAME=YOUR_TWITTER_NAME

Set buildpacks.

$ heroku buildpacks:set https://github.com/tdiary/heroku-buildpack-tdiary
$ heroku buildpacks:add heroku/ruby

Build and deploy.

$ git push heroku master
$ heroku run

Open your tDiary site in a web browser.

$ heroku open

How it works

This buildpack sets up some files (e.g. Gemfile.lock, tdiary.conf) to build tDiary on heroku.

  1. Delete original Gemfile.lock file
  2. Copy files in misc/paas/heroku directory to root directory

It does only preparation. Official heroku ruby buildpack is also needed.

See also

Please read offical tdiary document (in Japanese).