From e2bee24621a9e8249529d770942059ba3ef90a68 Mon Sep 17 00:00:00 2001
From: Lee Hambley
Capistrano will read the role filter from the environment variable ROLES
if it is set. You can set it inline:
ROLES=app,web cap production deploy
-
ROLES=app,web cap production deploy
+Specify multiple roles by separating them with a comma.
You can set the role filter inside your deploy configuration. For example,
you can set the following inside config/deploy.rb
:
set :filter, :roles => %w{app web}
-
set :filter, :roles => %w{app web}
+Note that you specify the filter as an array rather than as a comma-separated list of roles when using this method.
@@ -153,8 +159,11 @@ list of roles when using this method.In a similar way to using the environment variable, you can set the role
filter by specifying it as a command line argument to cap
:
cap --roles=app,web production deploy
-
cap --roles=app,web production deploy
+Like the environment variable method, specify multiple roles by separating them with a comma.
@@ -190,16 +199,22 @@ be executed on it.Capistrano will read the role filter from the environment variable ROLES
if it is set. You can set it inline:
ROLES=app,web cap production deploy
-
ROLES=app,web cap production deploy
+Specify multiple roles by separating them with a comma.
You can set the role filter inside your deploy configuration. For example,
you can set the following inside config/deploy.rb
:
set :filter, :roles => %w{app web}
-
set :filter, :roles => %w{app web}
+Note that you specify the filter as an array rather than as a comma-separated list of roles when using this method.
@@ -207,8 +222,11 @@ list of roles when using this method.In a similar way to using the environment variable, you can set the role
filter by specifying it as a command line argument to cap
:
cap --roles=app,web production deploy
-
cap --roles=app,web production deploy
+Like the environment variable method, specify multiple roles by separating them with a comma.
-->