Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 1.62 KB

README.md

File metadata and controls

65 lines (43 loc) · 1.62 KB

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 GITHUB_KEY=YOUR_GITHUB_KEY
$ heroku config:set GITHUB_SECRET=YOUR_GITHUB_SECRET
$ heroku config:set GITHUB_NAME=YOUR_GITHUB_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).