In Capistrano
3.3.x and later, set:bundle_binstubs,nil
, is there any other way to get the current list of variables that can be specified in set
besides checking the source code?
It would be best if I could read cap--environment
from the command line.
Add a task similar to the following to config/deploy.rb
and cap production config:display
to view the configuration in the production environment.
config/deploy.rb
namespace:config do
task —display do
Capistrano::Configuration.env.keys.each do | key |
p"#{key}=>#{fetch(key)}"
end
end
end
Example Execution
$cap production config:display
"stage=>production"
"scm=>git"
"branch=>master"
"deploy_to=>/var/www/my_app_name"
"tmp_dir=>/tmp"
"default_env=>{}"
"keep_releases=>5"
"format=>pretty"
"log_level=>debug"
"pty=>false"
"local_user=>username"
"application=>my_app_name"
"repo_url=>[email protected]:me/my_repo.git"
"git_environmental_variables=>{:git_askpass=>\"/bin/echo\" ,:git_ssh=>\"/tmp/my_app_name/git-ssh.sh\"}"
© 2024 OneMinuteCode. All rights reserved.