Skip to content

Instantly share code, notes, and snippets.

@salemine
Created January 3, 2017 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salemine/7956b508263885ea5e631177ef49a6e8 to your computer and use it in GitHub Desktop.
Save salemine/7956b508263885ea5e631177ef49a6e8 to your computer and use it in GitHub Desktop.
working deploy.rb for a vlad deployment
require_relative 'vlad_routines.rb'
set :application, "app"
set :repository, '~/app.git'
set :revision, "HEAD"
set :domain, "10.55.22.61"
set :deploy_to, "/var/www/#{application}"
set :shared_path, "/var/www/#{application}/shared"
set :shared_paths, {
'db' => 'db',
'www' => 'WEB',
'log' => 'log'
}
set :mkdirs, {}
Rake::Task["vlad:setup_app"].clear
Rake::Task["vlad:update_app"].clear
desc "Full deployment cycle"
task "vlad:deploy" => %w[
vlad:update
vlad:bundle:install
vlad:update_crontab
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment