Skip to content

Commit

Permalink
server js
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Chuairi Cruz committed Aug 28, 2018
1 parent a782615 commit c6b8aa8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ var channels = {}
const PORT = process.env.PORT || 3001

if (process.env.IS_PROD) {
console.log('XUNDA: ' + __dirname)
app
.use(express.static(path.join(__dirname, 'build')))
.use(express.static(path.join(__dirname, '../build')))
.get('/', (req, res, next) =>
res.sendFile(path.join(__dirname, '..', 'build/index.html')))
}
Expand Down

0 comments on commit c6b8aa8

Please sign in to comment.