bin/setup
#!/usr/bin/env ruby
require 'pathname'
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
Dir.chdir APP_ROOT do
puts "== Installing dependencies =="
system "gem install bundler --conservative"
system "bundle check || bundle install"
puts "\n== Preparing database =="
system "bin/rake db:setup"
end