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: src/applications/managing-app-lifecycle.md
+62-37Lines changed: 62 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,35 +87,57 @@ Notice that the process name has changed from `scenic-icehouse-v2-background-yf8
87
87
`scenic-icehouse-v2-background-yd87g`. In a multi-node Kubernetes cluster, this may also have the effect of scheduling
88
88
the Pod to a new node.
89
89
90
-
## Rollback a Release
90
+
## Track Application Changes
91
+
92
+
Deis Workflow tracks all changes to your application. Application changes are the result of either new application code
93
+
pushed to the platform (via `git push deis master`), or an update to application configuration (via `deis config:set KEY=VAL`).
94
+
95
+
Each time a build or config change is made to your application a new [release][] is created. These release numbers
96
+
increase montonically.
91
97
92
-
Use `deis rollback` to revert to a previous release.
98
+
You can see a record of changes to your application using `deis releases`:
93
99
94
-
$ deis rollback v2
95
-
Rolled back to v2
100
+
```
101
+
$ deis releases
102
+
=== peachy-waxworks Releases
103
+
v4 3 minutes ago gabrtv deployed d3ccc05
104
+
v3 1 hour 17 minutes ago gabrtv added DATABASE_URL
105
+
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
106
+
v1 6 hours 2 minutes ago gabrtv deployed deis/helloworld
107
+
```
108
+
109
+
## Rollback a Release
96
110
97
-
$ deis releases
98
-
=== folksy-offshoot Releases
99
-
v5 Just now gabrtv rolled back to v2
100
-
v4 4 minutes ago gabrtv deployed d3ccc05
101
-
v3 1 hour 18 minutes ago gabrtv added DATABASE_URL
102
-
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
103
-
v1 6 hours 3 minutes ago gabrtv deployed deis/helloworld
111
+
Deis Workflow also supports rolling back go previous releases. If buggy code or an errant configuration change is pushed
112
+
to your application, you may rollback to a previously known, good release.
104
113
105
114
!!! note
106
-
All releases (including rollbacks) append to the release ledger.
115
+
All rollbacks create a new, numbered release. But will reference the build/code and configuration from the desired rollback point.
107
116
108
-
## Track Application Changes
109
117
110
-
Each time a build or config change is made to your application, a new [release][] is created.
111
-
Track changes to your application using `deis releases`.
118
+
In this example, the application is currently running release v4. Using `deis rollback v2` tells Workflow to deploy the
119
+
build and configuration that was used for release v2. This creates a new release named v5 whose contents are the source
120
+
and configuration from release v2:
112
121
113
-
$ deis releases
114
-
=== peachy-waxworks Releases
115
-
v4 3 minutes ago gabrtv deployed d3ccc05
116
-
v3 1 hour 17 minutes ago gabrtv added DATABASE_URL
117
-
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
118
-
v1 6 hours 2 minutes ago gabrtv deployed deis/helloworld
122
+
```
123
+
$ deis releases
124
+
=== folksy-offshoot Releases
125
+
v4 4 minutes ago gabrtv deployed d3ccc05
126
+
v3 1 hour 18 minutes ago gabrtv added DATABASE_URL
127
+
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
128
+
v1 6 hours 3 minutes ago gabrtv deployed deis/helloworld
129
+
130
+
$ deis rollback v2
131
+
Rolled back to v2
132
+
133
+
$ deis releases
134
+
=== folksy-offshoot Releases
135
+
v5 Just now gabrtv rolled back to v2
136
+
v4 4 minutes ago gabrtv deployed d3ccc05
137
+
v3 1 hour 18 minutes ago gabrtv added DATABASE_URL
138
+
v2 6 hours 2 minutes ago gabrtv deployed 7cb3321
139
+
v1 6 hours 3 minutes ago gabrtv deployed deis/helloworld
140
+
```
119
141
120
142
## Run One-off Administration Tasks
121
143
@@ -165,30 +187,33 @@ CPU shares are on a scale of 0 to 1024, with 1024 being all CPU resources on the
165
187
166
188
Use `deis perms:create` to allow another Deis user to collaborate on your application.
167
189
168
-
$ deis perms:create otheruser
169
-
Adding otheruser to peachy-waxworks collaborators... done
190
+
```
191
+
$ deis perms:create otheruser
192
+
Adding otheruser to peachy-waxworks collaborators... done
193
+
```
170
194
171
-
Use `deis perms` to see who an application is currently shared with, and
172
-
`deis perms:remove` to remove a collaborator.
195
+
Use `deis perms` to see who an application is currently shared with, and `deis perms:remove` to remove a collaborator.
173
196
174
197
!!! note
175
-
Collaborators can do anything with an application that its owner can do,
176
-
except delete the application itself.
177
-
178
-
When working with an application that has been shared with you, clone the original repository and add Deis' git remote entry before attempting to `git push` any changes to Deis.
198
+
Collaborators can do anything with an application that its owner can do, except delete the application.
$ git remote add -f deis ssh://git@local3.deisapp.com:2222/peachy-waxworks.git
208
+
Updating deis
209
+
From deis-controller.local:peachy-waxworks
210
+
* [new branch] master -> deis/master
211
+
```
188
212
189
213
## Application Troubleshooting
190
214
191
-
Applications deployed on Deis [treat logs as event streams][]. Deis aggregates `stdout` and `stderr` from every [Container][] making it easy to troubleshoot problems with your application.
215
+
Applications deployed on Deis Workflow [treat logs as event streams][]. Deis Workflow aggregates `stdout` and `stderr`
216
+
from every [Container][] making it easy to troubleshoot problems with your application.
192
217
193
218
Use `deis logs` to view the log output from your deployed application.
0 commit comments