You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+26
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,32 @@ In the following example we declare the variable called "RELEASE" to have the va
95
95
Run "wget -O /usr/local/bin/app-${RELEASE} \
96
96
https://example.com/dist/app-${RELEASE}"
97
97
98
+
It is possible to override the value of a particular variable via a command-line argument, for example:
99
+
100
+
$ deployr run --set "ENVIRONMENT=PRODUCTION" ...
101
+
102
+
If you do this any attempt to `Set` the variable inside the recipe itself will be silently ignored. (i.e. A variable which is set on the command-line will become essentially read-only.) This is useful if you have a recipe where the only real difference is the set of configuration files, and the destination host. For example you could write all your copies like so:
0 commit comments