PageRenderTime 52ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/config/deploy.rb

https://bitbucket.org/Inomoz/inomoz-bp
Ruby | 34 lines | 11 code | 8 blank | 15 comment | 0 complexity | 1860693fff25a9bde6dd26eb04b81443 MD5 | raw file
  1. # Used by logging
  2. set :application, 'ajax-capified'
  3. # The directory on the remote system that will contain release versions
  4. # and the "current" release (which is a symlink to the last good release).
  5. # NOTE: This should be an absolute path (beginning with /).
  6. set :deploy_to, '/home/ubuntu/test'
  7. # If your code is checked into a repository for source control . . .
  8. # set :repository, "set your repository location here"
  9. # set :scm, :subversion
  10. # In this example, we're going to skip source control.
  11. ssh_options[:forward_agent] = true
  12. set :scm, :git
  13. set :repository, "git@bitbucket.org:inomoz/inomoz-bp.git";
  14. set :deploy_via, :remote_cache
  15. set :normalize_asset_timestamps, false
  16. # Log in as this user for setup and deployment
  17. set :user, 'ubuntu'
  18. # We want to avoid using the root user
  19. set :use_sudo, false
  20. # Our single server will serve all of the available roles; Capistrano
  21. # is designed to allow for having the different roles be served by
  22. # different computers.
  23. server '54.247.82.13', :web, :app, :db, :primary => true
  24. # Specify the private key you will use
  25. #ssh_options[:keys] = ["aws_key.pem"]
  26. ssh_options[:keys] = %w(~/.ssh/aws_key.pem)