Sha256: 047034b8db2c370cde4eb3647c6241d7e01068ef5db9e4848b9049308cad2b4b

Contents?: true

Size: 726 Bytes

Versions: 8

Compression:

Stored size: 726 Bytes

Contents

task :set_railman_env do
  set :deploy_to, "/home/deploy/apps/#{fetch(:application)}"
  set :rbenv_home, '/home/deploy/.rbenv'
  set :environment, {path: "#{fetch(:rbenv_home)}/shims:#{fetch(:rbenv_home)}/bin:$PATH", rails_env: 'production'}

  SSHKit.config.command_map[:rake] = "#{fetch(:deploy_to)}/bin/rake"
  %w(ln service start restart stop status).each do |cmd|
    SSHKit.config.command_map[cmd.to_sym] = "sudo #{cmd}"
  end
  SSHKit.config.command_map[:eye] = "#{fetch(:rbenv_home)}/shims/eye"
  SSHKit.config.command_map[:su_rm] = 'sudo rm'
end

before :setup, :set_railman_env
before :deploy, :set_railman_env
before :update, :set_railman_env
before :reset_server, :set_railman_env
before :remove, :set_railman_env

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
railman-deployment-0.2.4 lib/railman/tasks/set_railman_env.rake
railman-deployment-0.2.3 lib/railman/tasks/set_railman_env.rake
railman-deployment-0.2.2 lib/railman/tasks/set_railman_env.rake
railman-deployment-0.2.1 lib/railman/tasks/set_railman_env.rake
railman-deployment-0.2.0 lib/railman/tasks/set_railman_env.rake
railman-deployment-0.1.2 lib/railman/tasks/set_railman_env.rake
railman-deployment-0.1.1 lib/railman/tasks/set_railman_env.rake
railman-deployment-0.1.0 lib/railman/tasks/set_railman_env.rake