PageRenderTime 40ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/humanitiescomputing/dma_online_catalog
Ruby | 37 lines | 29 code | 6 blank | 2 comment | 0 complexity | f1d5b694c2e97f48bcec22df0b67fcdb MD5 | raw file
  1. require 'capistrano/ext/multistage'
  2. require "bundler/capistrano"
  3. set :stages, %w(production development)
  4. set :default_stage, "development"
  5. set :application, "dma"
  6. default_run_options[:pty] = true
  7. set :use_sudo, false # let's try to not use sudo if we don't have to
  8. ssh_options[:forward_agent] = true
  9. set :scm, :git
  10. set :scm_username, "www_dma"
  11. set :repository, "https://bitbucket.org/humanitiescomputing/dma_online_catalog.git"
  12. set :branch, 'master'
  13. # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
  14. set :deploy_via, :remote_cache
  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
  23. namespace :db do
  24. desc "Seed the database with values from db/seed.rb"
  25. task :seed do
  26. run "cd #{deploy_to}/current; /usr/bin/env rake db:seed RAILS_ENV=#{rails_env}"
  27. end
  28. end
  29. task :uname do
  30. run "uname -a"
  31. end