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

Commit

Permalink
update universal-redux-server script
Browse files Browse the repository at this point in the history
  • Loading branch information
bdefore committed Jan 10, 2016
1 parent c630c05 commit 3510bb9
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions bin/server_es6.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
#!/usr/bin/env node
const renderer = require('../lib/server').default;
const express = require('../lib/server.js').default;
const renderer = require('../lib/server/renderer').default;
const start = require('../lib/start').default;
const userConfig = require('./user-config');

// since typically the dev server is logging this out too
userConfig.verbose = false;

const config = require('./merge-configs')(userConfig);

// method 1
renderer.setup(config);
renderer.start();

// method 2
// renderer.setup(config);
// renderer.start();

// method 3
// renderer.configure(config);
// renderer.setup();
// renderer.start();
const app = express(config);
app.use(renderer(config));
start(app, config);

0 comments on commit 3510bb9

Please sign in to comment.