$ git clone https://github.com/akokubo/opencampus_workshop.git
$ cd opencampus_workshop
$ bin/bundle install --without production
$ bin/bundle update
$ bin/rake db:migrate
$ bin/rails server --port=3000
ブラウザでhttp://localhost:3000/にアクセス
Amazon S3にアカウントを作成し、S3_ACCESS_KEYなどを取得する。 ちなみに、Tokyoリージョンの場合、regionはap-northeast-1
$ heroku create
$ heroku config:set S3_ACCESS_KEY=<access key>
$ heroku config:set S3_SECRET_KEY=<secret key>
$ heroku config:set S3_REGION=<region>
$ heroku config:set S3_BUCKET=<bucket name>
$ git push heroku
$ heroku run rake db:migrate
Wikiのように使うことを想定しており、編集モードに切り替えると、誰でも書き込めますので、ご注意ください。