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

Commit

Permalink
Cleaned up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alexindigo committed Jul 19, 2016
1 parent bf07666 commit e45a76c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ Next, lets configure the development server. To keep things simple we can put th
var hypernova = require('hypernova/server');

hypernova({
clustering: false,

getComponent(name) {
if (name === 'MyComponent.js') {
return require('./app/assets/javascripts/MyComponent.js');
Expand Down Expand Up @@ -207,8 +205,8 @@ Options, and their defaults
bodyParser: {
limit: 1024 * 1000,
},
// disables cluster mode and reloads each component every time it is requested
clustering: true,
// disables cluster mode
enableCluster: false,
// how components will be retrieved,
getComponent: undefined,
// configure the logger
Expand Down
2 changes: 1 addition & 1 deletion examples/simple/hypernova.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const hypernova = require('hypernova/server');

hypernova({
clustering: false,
enableCluster: false, // default

getComponent(name) {
if (name === 'MyComponent.js') {
Expand Down
2 changes: 1 addition & 1 deletion test/server-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ describe('Hypernova server', () => {
});

it('starts up the hypernova server without blowing up', () => {
hypernova({ clustering: false, getComponent: () => {} });
hypernova({ getComponent: () => {} });
});
});

0 comments on commit e45a76c

Please sign in to comment.