fix: to deploy

pull/6/head
cudr 5 years ago
parent dc65376a37
commit a805d2476a

@ -2,12 +2,12 @@ const Connection = require('@slate-collaborative/backend')
const defaultValue = require('./src/defaultValue')
const express = require('express')
const app = express()
const server = require('http').createServer(app)
const PORT = process.env.PORT || 9000
const server = express()
.use(express.static('build'))
.listen(PORT, () => console.log(`Listening on ${PORT}`))
const config = {
entry: server, // or specify port to start io server
defaultValue,
@ -26,7 +26,3 @@ const config = {
}
const connection = new Connection(config)
app.use(express.static('build'))
server.listen(PORT)

Loading…
Cancel
Save