No commit activity in last 3 years
No release in over 3 years
Every capistrano command will be executed with direnv environment
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 1.2
 Project Readme

capistrano-direnv

Adds direnv support when executing commands with capistrano. It automatically adds direnv exec ... prefix to all commands executed by capistrano.

Installation

Add capistrano-direnv to Gemfile:

group :development do
  gem 'capistrano-direnv'
end

At least direnv >= 2.3.0 must be installed.

Usage

Add the following line to your Capfile:

require 'capistrano/direnv'

You should also manually allow .envrc file:

cd /path/to/envrc
direnv allow

Configuration

Defaults:

set :direnv_map_bins, %w{rake ruby bundle} # list of executables which should be preceded with direnv prefix
set :direnv_path, 'direnv'                 # path to direnv executable
set :envrc_path, shared_path               # path where .envrc file is stored