PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/travelin7/bbmshop
Ruby | 30 lines | 16 code | 8 blank | 6 comment | 0 complexity | c8e414824f1083863555c19202345fd0 MD5 | raw file
  1. set :application, "BBM Shop"
  2. set :repository, "https://travelin7@bitbucket.org/travelin7/bbmshop.git"
  3. set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
  4. # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
  5. set :deploy_to, "/home/asep/angelhack"
  6. role :web, "travees.com" # Your HTTP server, Apache/etc
  7. role :app, "travees.com" # This may be the same as your `Web` server
  8. role :db, "travees.com", :primary => true # This is where Rails migrations will run
  9. set :user, "asep"
  10. default_run_options[:pty] = true
  11. # if you want to clean up old releases on each deploy uncomment this:
  12. #after "deploy:restart", "deploy:cleanup"
  13. # if you're still using the script/reaper helper you will need
  14. # these http://github.com/rails/irs_process_scripts
  15. # If you are using Passenger mod_rails uncomment this:
  16. namespace :deploy do
  17. task :start do ; end
  18. task :stop do ; end
  19. task :restart, :roles => :app, :except => { :no_release => true } do
  20. run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  21. end
  22. end