diff options
| author | mo khan <mo@mokhan.ca> | 2014-08-22 22:42:11 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-08-22 22:42:11 -0600 |
| commit | 59ea3fa51f834c13f67e9593b7c0da92c63d58f4 (patch) | |
| tree | a06e20b5011b90dcb985e03b31fa5cbd8b6df9b3 /config/deploy.rb | |
| parent | 862f2cb16a498bd284d0ab8feea320adef7b0c2e (diff) | |
start migration to capistrano 3.
Diffstat (limited to 'config/deploy.rb')
| -rw-r--r-- | config/deploy.rb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index b12c1346..026a6a77 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -4,14 +4,18 @@ lock '3.2.1' set :application, 'cakeside' set :repo_url, 'git@bitbucket.org:cakeside/cakeside.git' +set :user, "deployer" + # Default branch is :master # ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call # Default deploy_to directory is /var/www/my_app # set :deploy_to, '/var/www/my_app' +set :deploy_to, "/home/#{fetch(:user)}/apps/#{fetch(:application)}" # Default value for :scm is :git -# set :scm, :git +set :scm, :git +set :scm_verbose, true # Default value for :format is :pretty # set :format, :pretty @@ -33,9 +37,14 @@ set :repo_url, 'git@bitbucket.org:cakeside/cakeside.git' # Default value for keep_releases is 5 # set :keep_releases, 5 +set :keep_releases, 3 +#set :normalize_asset_timestamps, false +set :ssh_options, { forward_agent: true } -namespace :deploy do +set :rbenv_type, :user # or :system, depends on your rbenv setup +set :rbenv_ruby, '2.1.2' +namespace :deploy do desc 'Restart application' task :restart do on roles(:app), in: :sequence, wait: 5 do @@ -54,5 +63,4 @@ namespace :deploy do # end end end - end |
