Sha256: 521c2d23849b4a9a3a0753db8dec5f74a4e5fb4ed1a1642a31be0ba6d820c437
Contents?: true
Size: 865 Bytes
Versions: 10
Compression:
Stored size: 865 Bytes
Contents
set :user, `whoami`.chomp set :ssh_options, user: ENV['USER'], keys: [File.expand_path('~/.ssh/id_rsa')] # set :default_env, { path: "/opt/ruby/bin:$PATH" } set :linked_dirs, %w(log tmp/pids vendor/bundle) set :keep_releases, 5 set :rbenv_type, :user set :rbenv_ruby, RUBY_VERSION # '2.1.5' set :deploy_to, "#{ENV['HOME']}/sample" set :scm, :bundle_rsync set :bundle_rsync_max_parallels, ENV['PARA'] set :bundle_rsync_rsync_bwlimit, ENV['BWLIMIT'] # like 20000 set :bundle_rsync_shared_dirs, File.expand_path('..', __dir__) # rsync example to shared/example set :bundle_rsync_rsync_options, "-az --delete --exclude=.git" namespace :deploy do desc 'Restart web application' task :restart do on roles(:web), in: :sequence, wait: 5 do # execute some restart code end end after :finishing, 'deploy:cleanup' # after :publishing, :restart end
Version data entries
10 entries across 10 versions & 1 rubygems