Permalink
Browse files

Enabling capistrano dotenv support

  • Loading branch information...
dliggat committed Dec 14, 2014
1 parent b1f0d94 commit 23bac39176accbee69ba3465d8aad92e822f2972
Showing with 4 additions and 3 deletions.
  1. +4 −3 config/deploy.rb
@@ -1,3 +1,4 @@
require "dotenv/deployment/capistrano"
# This is a sample Capistrano config file for rubber
set :rails_env, Rubber.env
@@ -30,11 +31,11 @@
# Lets us work with staging instances without having to checkin config files
# (instance*.yml + rubber*.yml) for a deploy. This gives us the
# convenience of not having to checkin files for staging, as well as
# convenience of not having to checkin files for staging, as well as
# the safety of forcing it to be checked in for production.
set :push_instance_config, Rubber.env != 'production'
# don't waste time bundling gems that don't need to be there
# don't waste time bundling gems that don't need to be there
set :bundle_without, [:development, :test, :staging] if Rubber.env == 'production'
# Allow us to do N hosts at a time for all tasks - useful when trying
@@ -80,7 +81,7 @@
after "deploy:migrations", "cleanup"
task :cleanup, :except => { :no_release => true } do
count = fetch(:keep_releases, 5).to_i
rsudo <<-CMD
all=$(ls -x1 #{releases_path} | sort -n);
keep=$(ls -x1 #{releases_path} | sort -n | tail -n #{count});

0 comments on commit 23bac39

Please sign in to comment.