mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.35k stars 491 forks source link

Fail-safe for setup task for when no shared files set #548

Closed coreyworrell closed 6 years ago

d4be4st commented 6 years ago

this fixed the issue: https://github.com/mina-deploy/mina/blob/master/tasks/mina/deploy.rb#L25

coreyworrell commented 6 years ago

From what I can tell, that does not fix the issue. I was referring to the mina setup task. It should be able to run and setup the server even when you have no shared files or directories. Currently it will fail bc the in_path line in setup task (basically) compiles down to cd $shared && && cd -which causes an error of course.

The code in link you referenced above is called during deploy, and causes an error if there is no shared directory, kind of the opposite of what this issue was trying to accomplish.

Thank you.