Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit e45a76c

Browse files
committed
Cleaned up examples
1 parent bf07666 commit e45a76c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ Next, lets configure the development server. To keep things simple we can put th
5151
var hypernova = require('hypernova/server');
5252

5353
hypernova({
54-
clustering: false,
55-
5654
getComponent(name) {
5755
if (name === 'MyComponent.js') {
5856
return require('./app/assets/javascripts/MyComponent.js');
@@ -207,8 +205,8 @@ Options, and their defaults
207205
bodyParser: {
208206
limit: 1024 * 1000,
209207
},
210-
// disables cluster mode and reloads each component every time it is requested
211-
clustering: true,
208+
// disables cluster mode
209+
enableCluster: false,
212210
// how components will be retrieved,
213211
getComponent: undefined,
214212
// configure the logger

examples/simple/hypernova.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const hypernova = require('hypernova/server');
22

33
hypernova({
4-
clustering: false,
4+
enableCluster: false, // default
55

66
getComponent(name) {
77
if (name === 'MyComponent.js') {

test/server-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ describe('Hypernova server', () => {
77
});
88

99
it('starts up the hypernova server without blowing up', () => {
10-
hypernova({ clustering: false, getComponent: () => {} });
10+
hypernova({ getComponent: () => {} });
1111
});
1212
});

0 commit comments

Comments
 (0)