I expect it to first run setup task's commands, followed by commands of deploy task. What actually happens is setup's commands along with deploy's commands got incorporated into deploy.sh.erb. And at least the first time you run mina, it fails. Since other commands get executed before commands of setup task.
If setup is run alone, the commands get executed by run_commands task. With deploy task, they are runhere.
I expect it to first run
setup
task's commands, followed by commands ofdeploy
task. What actually happens issetup
's commands along withdeploy
's commands got incorporated intodeploy.sh.erb
. And at least the first time you runmina
, it fails. Since other commands get executed before commands ofsetup
task.If
setup
is run alone, the commands get executed byrun_commands
task. Withdeploy
task, they are run here.