Sha256: 4c965bab03cbbe5c064a3cfe16810ab25004bfd9bb1fd842514a31277745e59f

Contents?: true

Size: 1.13 KB

Versions: 34

Compression:

Stored size: 1.13 KB

Contents

set :application, 'plataforma_social'

$environment = 'staging' # | staging # production

set :scm, :git
set :scm_verbose, true
default_run_options[:pty] = true
set :deploy_via, :remote_cache

case $environment

when 'staging'
  p "\n\n\nCAREFUL!!!! STAGING DEPLOY!!!\n\n"

   set :restart_server_command, "/opt/local/nginx/sbin/nginx -s reload"

  set :repository,  "ssh://dito@projetos.dito.com.br:4444/home/git/repositories/plataforma_social.git"

  set :branch, "master"

  #usuario ssh
  set :user, "dito"

  role :app, "31.171.132.244"
  role :web, "31.171.132.244"
  role :db,  "31.171.132.244", :primary => true

  set :deploy_to, "/home/dito/www/plataforma_social"
  set :use_sudo, true

  after "deploy", "deploy:cleanup"
else
  p "UNRECOGNIZED ENVIRONMENT"
end


before "deploy:create_symlink", "deploy:copy_files"


namespace :deploy do

  task :copy_files, :roles => :app do
    case $environment
    when 'staging'
      run "cd #{release_path} && /home/dito/.rvm/gems/ruby-1.9.3-p327@global/bin/bundle install"
    end
  end

  desc "Restart the web server"
  task :restart, :roles => :app do
    # sudo restart_server_command
  end

end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
plataforma_social-0.0.38 config/deploy.rb
plataforma_social-0.0.37 config/deploy.rb
plataforma_social-0.0.36 config/deploy.rb
plataforma_social-0.0.35 config/deploy.rb
plataforma_social-0.0.34 config/deploy.rb
plataforma_social-0.0.33 config/deploy.rb
plataforma_social-0.0.32 config/deploy.rb
plataforma_social-0.0.30 config/deploy.rb
plataforma_social-0.0.29 config/deploy.rb
plataforma_social-0.0.28 config/deploy.rb
plataforma_social-0.0.27 config/deploy.rb
plataforma_social-0.0.26 config/deploy.rb
plataforma_social-0.0.25 config/deploy.rb
plataforma_social-0.0.24 config/deploy.rb
plataforma_social-0.0.23 config/deploy.rb
plataforma_social-0.0.22 config/deploy.rb
plataforma_social-0.0.21 config/deploy.rb
plataforma_social-0.0.20 config/deploy.rb
plataforma_social-0.0.19 config/deploy.rb
plataforma_social-0.0.18 config/deploy.rb