この頃はまだ3ピースだったんだな。メロディの良さと心地よいグルーブは変わっていないが、ドラム、ベース、ギター、歌というシンプルな構成になっている。1stのiTunesの関連作品見てて気づいたんだけど、Peple In The Boxの初期作品に似た雰囲気がある。なんか懐かしい感触がすると思ったらそういうことか。
This blog is implemented with sinatra-activerecord and deployed with Capistrano 3.
Today I needed to add some modification to the DB schema, then I found that DB migration does not works well when I do cap production deploy.
Reason
sinatra-activerecord provides a rake task to run DB migration like rake db:migrate RACK_ENV=production. Note that the envvar is RACK_ENV, not RAILS_ENV. This does make sense because it is not a gem for Rails. However, you cannot run migration with capistrano-rails by this reason.
Solution
So here is my new settings in the config/deploy.rb. This is mostly the same as what capistrano/rails/migrations does, except the envvar is rack_env.