Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Variables set in "deploy.rb" can't be fetched in "staging files" and "task files" #1519
Everything is in the title.
Since, I didn't find anything about this huge problem, I presume this is due to a mistake on my side.
Here is my whole configuration:
Output (when using task with this configuration)
Output (when I put everything in the staging file "capistrano/environments/staging.rb")
I wonder if this happen because I changed the
Yes, this is a bit tricky.
The problem is that
set :deploy_config_path, 'capistrano/deploy.rb'
You are actually instructing capistrano to load its own
The solution is to pass an absolute path, which you can do in your Capfile like this:
set :deploy_config_path, File.expand_path('capistrano/deploy.rb')
Could you open an issue for the missing documentation in the capistrano/documentation repository here?: https://github.com/capistrano/documentation/issues (this is the repo for the capistranorb.com site)
If you want to submit a PR to add the docs that would also help us a lot!