No commit activity in last 3 years
No release in over 3 years
Capistrano3 check .env variables
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Capistrano3 Dotenv Check

Capistrano3 check .env variables

Usage

Setup

Add the library to your Gemfile

group :development do
  gem "capistrano3-dotenv-check", :require => false
end

Require in Capfile to use default task:

require "capistrano3/dotenv-check"

Configuration

Configurable options:

set :dotenv_file_path, "#{shared_dir}/.env"   # this is default
set :dotenv_checklist, {}                     # this is default

You can set :dotenv_checklist and :dotenv_file_path in the stage which you want. Example:

# config/deploy/staging.rb

set :dotenv_checklist, {
  ENV_KEY: "Expected value for staging",
  # ...
}
# config/deploy/production.rb

set :dotenv_file_path, "/home/root/.env"
set :dotenv_checklist, {
  ENV_KEY: "Expected value for production"
}