I’m using capistrano to deploy code to my hosts. If I want to run cap roll HOSTS=server1, server2, ..., what delimiter do I use between the server names?
I’m using capistrano to deploy code to my hosts. If I want to run
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have it about right, it’s the comma. The whitespace is your problem. Try quoting:
or just don’t use whitespace, and you won’t need to quote.
Alternatively, if the set of servers you’re deploying to is defined as a role (and it probably should be), you can use the ROLES environment variable.
or if you want to invoke on multiple roles at once, they can also be specified in the same style as the HOSTS variable:
(Assuming you’re using Bash here–I’ve never had to run cap from another shell, so this may not apply if you’re using something unusual like the windows shell)