Skip to content

Instantly share code, notes, and snippets.

@aq2bq
Last active August 29, 2015 14:00
Show Gist options
  • Save aq2bq/11075582 to your computer and use it in GitHub Desktop.
Save aq2bq/11075582 to your computer and use it in GitHub Desktop.
Deploy Lokka to Heroku
# Regist public-key
$ heroku login
# => input heroku account, email and password
# Remove registered public-key
$ heroku keys:clear
# => All keys removed.
# Reregist public-key
$ heroku keys:add
# Config time-zone to ASIA/Tokyo
$ heroku config:add TZ=Asia/Tokyo
# Deployment to Heroku
# 1.Enable an Add-ons "Heroku Postgres :: Maroon" at first
# 2.Modify "database.default.yml" like follows:
#
# production:
# dsn: <%= ENV['HEROKU_POSTGRESQL_MAROON_URL'] %>
#
# then,
$ gem install heroku bundler
$ git clone git://github.com/lokka/lokka.git
$ cd lokka
$ heroku create mysite-by-lokka
$ git push heroku master
$ heroku run rake db:setup
$ heroku apps:open
# Reference from:
# HerokuでSSH公開鍵(public key)を登録する方法(と削除して再登録する方法)
# http://blog.infinity-dimensions.com/2012/02/heroku-public-key-add.html
#
# Getting Started - Lokka
# http://lokka.org/getting-started
#
# herokuでタイムゾーン設定
# http://qiita.com/haman29@github/items/773b522b92bbf806ab32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment