PageRenderTime 41ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/e911miri/p2fxrails
Ruby | 34 lines | 20 code | 6 blank | 8 comment | 0 complexity | 28e0ff7cb0a10ebea9200e2790ddb24a MD5 | raw file
Possible License(s): MIT
  1. set :user, 'railscap'
  2. set :domain, 'p2fx.net'
  3. set :application, 'p2fx'
  4. # adjust if you are using RVM, remove if you are not
  5. $:.unshift(File.expand_path('./lib', ENV['rvm_path']))
  6. require "rvm/capistrano"
  7. set :rvm_ruby_string, '1.9.2'
  8. set :rvm_type, :user
  9. # file paths
  10. set :repository, "https://e911miri@bitbucket.org/e911miri/p2fxrails.git"
  11. set :deploy_to, "/var/www/railsapps/p2fx"
  12. set :git
  13. # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
  14. role :app, domain
  15. role :web, domain
  16. role :db, domain, :primary => true
  17. # if you want to clean up old releases on each deploy uncomment this:
  18. # after "deploy:restart", "deploy:cleanup"
  19. # if you're still using the script/reaper helper you will need
  20. # these http://github.com/rails/irs_process_scripts
  21. # If you are using Passenger mod_rails uncomment this:
  22. namespace :deploy do
  23. task :start do ; end
  24. task :stop do ; end
  25. task :restart, :roles => :app, :except => { :no_release => true } do
  26. run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
  27. end
  28. end