Strategy never gets run because role and host are not defined
Opened this issue · 0 comments
ScottA38 commented
I am trying to use this strategy, but it never seems to run
When I added it to VSCode in the debugger it always seems to miss the submodule functionality because of the line:
on release_roles :all do
As I understand this should allow the functionality to execute on any run, but it seems not to work this way
To test this, I set the ROLES
env var with export ROLES=app
, but this produces the same result in the debugger.
The debug config used when running debugger to detect this is:
{
"name": "Debug Capsitrano",
"type": "Ruby",
"request": "launch",
"pathToBundler": "/usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.16/exe/bundle",
"pathToRDebugIDE": "/Users/ScottAnderson/Tech/commissions/scotta38.github.io/vendor/bundle/ruby/3.0.0/gems/ruby-debug-ide-0.7.3/bin/rdebug-ide",
"program": "/usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.16/exe/bundle",
"cwd": "${workspaceRoot}",
"env": {
"ROLES": "app"
},
"useBundler": true,
"args": ["exec", "cap", "production", "deploy", "--trace"]
},
Meaning that the debugger is running Capistrano command as /usr/local/lib/ruby/gems/3.0.0/gems/bundler-2.2.16/exe/bundle exec cap production deploy --trace