@@ -18,7 +18,7 @@ defmodule Mix.Tasks.Bootleg.Upgrade do
18
18
having first a good understand of how a hot upgrade is performed,
19
19
its limitations and steps required.
20
20
21
- See nex section for an overview of the hot upgrade process.
21
+ See next sections for an overview of the hot upgrade process.
22
22
23
23
## Hot upgrading a running application
24
24
@@ -81,21 +81,21 @@ defmodule Mix.Tasks.Bootleg.Upgrade do
81
81
* mix bootleg.build_upgrade
82
82
will tranfer the last committed source code of your application
83
83
from the development machine to the build directory of
84
- your build machine, for example `~/build/myapp/`, then
84
+ your build machine ( for example `~/build/myapp/`) , then
85
85
it will clean the directory from the previous code deleting
86
- every file but the `_buil ` directory, it will generate the
86
+ every file but the `_build ` directory, it will generate the
87
87
`appup` file and compile the newest app release.
88
- Please note th before you can use this task for the first time,
88
+
89
+ Please note that before you can use this task for the first time,
89
90
you have to deploy your _first version_ of your app using
90
91
`bootleg.build`, `bootleg.deploy` and `bootleg.start`
91
92
(or `bootleg.update`);
92
93
93
94
* mix bootleg.deploy_upgrade
94
95
will transfer the tarball of the compiled app from the
95
96
build machine to the production directory of the production
96
- machine, e.g. `~/production/myapp/`
97
-
98
- then will extract and setting up the needed files;
97
+ machine (e.g. `~/production/myapp/`), then it will extract
98
+ and setting up the needed files;
99
99
100
100
* mix bootleg.hot_upgrade
101
101
will call `mix distillery <myapp> upgrade <version>` that
@@ -112,15 +112,15 @@ defmodule Mix.Tasks.Bootleg.Upgrade do
112
112
Given you have configured the first version of your app with all
113
113
the needed and appropriately customized Bootleg configuration files,
114
114
you can go through the following steps to release and run the
115
- first version and subsequentely hot upgrade it to the newest
115
+ first version, and subsequentely hot upgrade it to the newest
116
116
versions:
117
117
118
- First version of your app:
118
+ First version of your app
119
119
120
120
# Step 1 - deploy the first version of your app
121
121
edit the version number of your in the mix.exs file
122
122
(or in the file if you use an external reference),
123
- to the first version, e.g. 0.1.0;
123
+ to the first version ( e.g. 0.1.0) ;
124
124
125
125
# Step 2 - Commit
126
126
commit the changes you've made in step 1;
@@ -137,9 +137,9 @@ defmodule Mix.Tasks.Bootleg.Upgrade do
137
137
use `mix bootleg.start` to run the app
138
138
139
139
now your first version is up and running. To upgrade it
140
- to the future version, you have to follow these steps instead.
140
+ to the future version, you have to follow these steps instead:
141
141
142
- Following versions:
142
+ Following versions
143
143
144
144
# Step 1 - update the version number
145
145
e.g. 0.2.0
@@ -167,7 +167,7 @@ defmodule Mix.Tasks.Bootleg.Upgrade do
167
167
168
168
If you are shure that you want to having the last version restarted,
169
169
just delete the folder `~/production/myapp/var`. This folder contains
170
- the file `start_erl.data` that list the version number to start with.
170
+ the file `start_erl.data` that lists the version number to start with.
171
171
Deleting the `var` folder will automatically create it next time the app
172
172
is started, with the last version number.
173
173
0 commit comments