Rewrite frontend using create-react-app

This commit is contained in:
MICHAEL JACKSON
2017-03-25 23:53:54 -07:00
parent 69a578fcda
commit 0f5c584104
60 changed files with 20489 additions and 18930 deletions

12
server.js Normal file
View File

@ -0,0 +1,12 @@
const path = require('path')
const throng = require('throng')
const { startServer } = require('./server/index')
const port = parseInt(process.env.PORT, 10) || 5000
const publicDir = path.resolve(__dirname, 'build')
throng({
workers: process.env.WEB_CONCURRENCY || 1,
start: (id) => startServer({ id, port, publicDir }),
lifetime: Infinity
})