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.17 config/deploy.rb
plataforma_social-0.0.16 config/deploy.rb
plataforma_social-0.0.15 config/deploy.rb
plataforma_social-0.0.14 config/deploy.rb
plataforma_social-0.0.13 config/deploy.rb
plataforma_social-0.0.12 config/deploy.rb
plataforma_social-0.0.11 config/deploy.rb
plataforma_social-0.0.10 config/deploy.rb
plataforma_social-0.0.9 config/deploy.rb
plataforma_social-0.0.8 config/deploy.rb
plataforma_social-0.0.7 config/deploy.rb
plataforma_social-0.0.6 config/deploy.rb
plataforma_social-0.0.5 config/deploy.rb
plataforma_social-0.0.4 config/deploy.rb