Created
February 2, 2016 17:48
-
-
Save cmcewen/9f0cb3d8305b839eed99 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
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'); | |
const path = require('path'); | |
const root = path.resolve(__dirname, '../../..'); | |
const sourceDir = path.resolve(root, './src'); | |
const config = require('./merge-configs')(userConfig(root, sourceDir)); | |
// since typically the dev server is logging this out too | |
config.verbose = false; | |
const app = express(config); | |
app.use(renderer(config)); | |
start(app, config); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment