1 2 3
namespace :db do task :pull do run "cd #{current_release} && RAILS_ENV=#{rails_env} rake db:data:dump"
# 1) Point *.example.com in your DNS setup to your server. # # 2) Setup an Apache vhost to catch the star pointer: