Skip to content

Commit 1853428

Browse files
authored
Merge pull request #870 from zodern/dev
Mup 1.4
2 parents 3767ed6 + e01d174 commit 1853428

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+6572
-6448
lines changed

.eslintrc.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
parser: babel-eslint
3+
extends:
4+
- es/2015/server
35
plugins:
46
- babel
57
- markdown
@@ -8,6 +10,7 @@ env:
810
node: true
911
mocha: true
1012
parserOptions:
13+
sourceType: 'module'
1114
ecmaVersion: 2017
1215
ecmaFeatures:
1316
accessor-pairs: 2
@@ -43,7 +46,7 @@ rules:
4346
- 2
4447
- never
4548
arrow-spacing: 2
46-
block-scoped-var: 0
49+
block-scoped-var: 2
4750
brace-style:
4851
- 2
4952
- 1tbs
@@ -52,7 +55,7 @@ rules:
5255
camelcase:
5356
- 2
5457
- properties: always
55-
comma-dangle: 2
58+
comma-dangle: [2, 'never']
5659
comma-spacing: 0
5760
comma-style:
5861
- 2
@@ -66,18 +69,18 @@ rules:
6669
curly:
6770
- 2
6871
- all
69-
default-case: 0
72+
default-case: 2
7073
dot-location:
7174
- 2
7275
- property
73-
dot-notation: 0
76+
dot-notation: 2
7477
eol-last: 2
7578
eqeqeq: 2
7679
func-names: 0
7780
func-style: 0
7881
global-require: 2
7982
generator-star-spacing:
80-
- 0
83+
- 2
8184
- before: true
8285
after: false
8386
guard-for-in: 2
@@ -102,7 +105,8 @@ rules:
102105
max-depth: 0
103106
max-len:
104107
- 2
105-
- ignoreStrings: true
108+
- ignoreTemplateLiterals: true
109+
ignoreStrings: true
106110
max-nested-callbacks: 0
107111
max-params: 0
108112
max-statements: 0
@@ -132,13 +136,13 @@ rules:
132136
no-empty: 2
133137
no-empty-pattern: 2
134138
no-empty-character-class: 2
135-
no-eq-null: 0
139+
no-eq-null: 2
136140
no-eval: 2
137141
no-ex-assign: 2
138142
no-extend-native: 2
139143
no-extra-bind: 2
140144
no-extra-boolean-cast: 2
141-
no-extra-parens: 0
145+
no-extra-parens: [ 2, 'all', { nestedBinaryExpressions: false }]
142146
no-extra-semi: 2
143147
no-fallthrough: 2
144148
no-floating-decimal: 2
@@ -154,7 +158,7 @@ rules:
154158
no-irregular-whitespace: 2
155159
no-iterator: 2
156160
no-label-var: 2
157-
no-labels: 0
161+
no-labels: 2
158162
no-lone-blocks: 2
159163
no-lonely-if: 2
160164
no-loop-func: 2
@@ -212,7 +216,7 @@ rules:
212216
args: after-used
213217
no-use-before-define: 0
214218
no-useless-call: 2
215-
no-var: 0
219+
no-var: 2
216220
no-void: 2
217221
no-warning-comments: 0
218222
no-with: 2
@@ -231,10 +235,10 @@ rules:
231235
operator-linebreak:
232236
- 2
233237
- after
234-
padded-blocks: 0
235-
prefer-const: 0
238+
padded-blocks: [2, 'never']
239+
prefer-const: 2
236240
prefer-reflect: 0
237-
prefer-spread: 0
241+
prefer-spread: 2
238242
quote-props:
239243
- 2
240244
- as-needed
@@ -284,3 +288,7 @@ rules:
284288
- 2
285289
- never
286290
- exceptRange: true
291+
newline-per-chained-call: 0
292+
class-methods-use-this: 0
293+
no-empty-function: 0
294+
sort-imports: [2, { memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'], ignoreCase: true }]

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sudo: required
33
language: node_js
44
node_js:
55
- "4"
6-
- "6"
6+
- "8"
77

88
env:
99
- TEST_PLUGIN='default'

CHANGELOG.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,67 @@
1+
## Next
2+
3+
**Status**
4+
The `mup status` command gives an overview of what is running on the servers and shows any problems plugins detected.
5+
6+
**Reverse Proxy**
7+
- The reverse proxy is no longer an "experimental feature"
8+
- Add support for customizing the generated nginx config
9+
- Add `mup proxy nginx-config` command to view the generated config
10+
- `HTTP_FORWARDED_COUNT` defaults to 1 when using the reverse proxy (@jehartzog)
11+
- Fix verifying deployment when using the reverse proxy.
12+
- Fix deploying when `app.env.PORT` is set to a value other than 80
13+
- Fix setting up proxy when using a non-root user
14+
15+
**Mongo**
16+
- Oplog is automatically enabled. To use, set `app.env.MONGO_OPLOG_URL` to `mongodb://mongodb/local` (@edemaine)
17+
- The `Start Mongo` task now waits until mongo has sucessfully started before finishing
18+
- If mongo fails to start, the `Start Mongo` task will now fail
19+
20+
**Depreciations**
21+
22+
`meteor.ssl`, `meteor.nginx`, and `meteor.docker.imageFrontendServer` are depreciated. It uses a different implementation for custom certificates and lets encrypt, each with different features and restrictions. Also, the custom certificate implementation has security problems. The reverse proxy should be used instead. It doesn't have the security problems, uses the same implementation for custom certificates and lets encrypt, and has many additional features. Learn how to use the [reverse proxy in the docs](http://meteor-up.com/docs#reverse-proxy).
23+
24+
`proxy.shared.clientUploadLimit` is depreciated. Use `proxy.clientUploadLimit` instead, which allows each app to have a different value.
25+
26+
**Other Changes**
27+
- `mup init` will create a `.deploy` folder when run in the same folder as a Meteor app
28+
- When mup can find a meteor app near to where `mup init` is run, the default config's `app.path` will be the path to that app
29+
- When a deploy fails, the last 200 instead of 100 lines of the app's logs are shown
30+
- More of the output is shown when a command fails
31+
- When copying a file fails with the error `No such file`, it will tell the user to run `mup setup` to fix it
32+
- `reconfig` hooks will now run during `mup deploy`
33+
- `--show` is no longer needed to show the config when `mup validate --scrub` is run
34+
- Add section to readme about Meteor compatibility
35+
- Initial work has been done to support Docker Swarm
36+
- When there is only one server, `mup ssh` will not require the name of a server
37+
- Add `zodern/meteor` to list of images that Prepare Bundle is automatically enabled for
38+
- If the app's docker container is restarting during 10 checks, the Deployment Verifier will revert the app without waiting the full time in `deployCheckWaitTime`
39+
- Some of Mup's dependencies use Buffer.alloc. When the version of node used to run mup is missing the function, mup will show a message explaining the problem and exit
40+
- Added 10 second timeout to the curl command in the Deployment Verifier
41+
- Fix retry logic for the copy file task
42+
- Fix `mup restart` and `mup meteor restart` when config has an `app` object instead of `meteor`
43+
- Fix running Prepare Bundle when image already has a `/built_app` folder
44+
- Fix alignment of list of servers when running `mup ssh` without specifying a server
45+
- Fix showing stack trace of errors with old versions of Node
46+
- Fix plugins preparing the config multiple times
47+
- Fix loading locally installed plugins
48+
- `npm install` will still succeed even if Open Collectives's post-install hook fails
49+
50+
**Docs**
51+
- Document using a private docker registry (@justinr1234)
52+
- Document `HTTP_FORWARDED_COUNT` (@jehartzog)
53+
- Change `app.buildOptions.debug` to `false` in example configs
54+
- Add section to readme about changing the docker image
55+
- Add the [`zodern:meteor`](https://github.com/zodern/meteor-docker) image to list of docker images
56+
- Improve the style of tables in the docs
57+
58+
**Plugins**
59+
- list.executeScript supports server specific variables
60+
- Using the `post.status` hook, plugins can show their status
61+
- Plugins can add a `solution` property to errors. Mup will show the solution in yellow before exiting
62+
- Plugins can add a depreciation warning while validating a config with `utils.addDepreciation`
63+
- Validator utils support joi v11, v12, and v13 in addition to joi v10.
64+
165
## 1.3.7 - Nov 28, 2017
266

367
- Fix permission denied error sometimes encountered during Prepare Bundle

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ npm install -g mup
4646
- [Getting Started](http://meteor-up.com/getting-started.html)
4747
- [Docs](http://meteor-up.com/docs.html)
4848

49+
## Meteor compatibility
50+
51+
Mup supports Meteor 1.2 and newer.
52+
To use Meteor 1.4 and newer, you will need to change the docker image. A list of docker images is available [here](http://meteor-up.com/docs#meteor-support).
53+
4954
### Support
5055

5156
First, look at the [troubleshooting](http://meteor-up.com/docs.html#troubleshooting) and [common problems](http://meteor-up.com/docs.html#common-problems) sections of the docs. You can also search the [github issues](https://github.com/zodern/meteor-up/issues).

docs/css/docs.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,25 @@ code {
109109
color: #9e9e9e;
110110
}
111111

112+
table {
113+
font-size: 14px;
114+
border: 3px solid #3b4863;
115+
}
116+
117+
table thead {
118+
background-color: #3b4863;
119+
}
120+
121+
table th {
122+
padding: 15px 5px;
123+
}
124+
125+
table td {
126+
padding: 15px;
127+
color: #fff;
128+
border-bottom: solid 1px rgb(59, 72, 99) !important;
129+
}
130+
112131
@media (max-width: 600px) {
113132
.docs-nav {
114133
position: fixed;

0 commit comments

Comments
 (0)