set :user, "fesplugas" set :application, "demo.typuscms.com" set :use_sudo, false set :deploy_to, "/home/#{user}/public_html/#{application}" set :scm, :git set :default_run_options, { :pty => true } set :repository, "git://github.com/fesplugas/typus.git" set :deploy_via, :remote_cache set :keep_releases, 2 set :branch, "3-1-unstable" # Override default `:bundle_flags` because I don't provide a Gemfile.lock. set :bundle_flags, "--quiet" # RVM version set :rvm_ruby_string, '1.9.2' set :domain, "demo.typuscms.com" role :web, domain role :app, domain role :db, domain, :primary => true # This is where Rails migrations will run role :db, domain after "deploy", "deploy:cleanup" namespace :deploy do task :start do ; end task :stop do ; end task :restart, :roles => :app, :except => { :no_release => true } do run "cd #{current_path}/test/fixtures/rails_app && bundle exec rake db:setup RAILS_ENV=production" run "cd #{current_path}/test/fixtures/rails_app && touch tmp/restart.txt" end task :finalize_update do ; end end