config/deploy/production.rb
シェルのヒストリでうっかり cap production deploy
と実行してしまう時があるので、 production 環境だけプロンプト出すことにした。
config/deploy/production.rb の先頭にこれを挿入。
require 'thor' exit unless Thor::Shell::Basic.new.yes? "This is production, are you ready? (y/N) >"