
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Small Capistrano utility that allows easy management of app-specific environment variables (currently supporting dotenv only)
Add the gem to your Gemfile
gem 'capistrano3-env', '~> 0.1.0'
Run bundle
to update your Gemfile.lock
Add the following to your Capfile
:
require 'capistrano/env'
Rake (which is used by Capistrano) has a not so pratical way of specifying task arguments. To alleviate that issue, a small custom executable was made:
bundle exec cap-env [stage] [operation] [KEY] [VALUE]
The possible use cases are the following:
cap-env production get # shows the current env file for
production
cap-env production set APP_ID 123456 # sets KEY=value
cap-env production get APP_ID # shows the current value of KEY
cap-env production delete APP_ID # deletes the given KEY
Alternatively, you can use the underlying Capistrano tasks directly with cap production TASK
, where TASK
is one of the following:
env:get # shows the current env file
env:get[KEY] # KEY # shows the current value of KEY from the env file
env:set[KEY,value] # sets KEY=value in the env file
env:delete[KEY] # deletes the given KEY
The following configurations are available to you in config/deploy.rb (default values are shown here, no need to set them)
set :config_backend, :dotenv # currently this is the only supported backend
set :config_file, '.env' # you might want to use .env.production instead
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that capistrano3-env demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.