Skip to content

Commit

Permalink
no-static test
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanchristie committed Sep 11, 2018
1 parent 737d667 commit d6b27dc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ require('./routes/googleRoutes')(app);
require('./routes/facebookRoutes')(app);
require('./routes/twitterRoutes')(app);
require('./routes/quotesRoutes')(app);
const path = require('path');
// const path = require('path');

if (process.env.NODE_ENV === 'production') {
app.use(express.static(__dirname + '/client/build'));
// if (process.env.NODE_ENV === 'production') {
// app.use(express.static(__dirname + '/client/build'));

app.get('*', (req, res) => {
res.sendFile(__dirname + '/client/build/index.html');
});
}
// app.get('*', (req, res) => {
// res.sendFile(__dirname + '/client/build/index.html');
// });
// }

app.listen(PORT, () => console.log(`Listening on port ${PORT}`));

0 comments on commit d6b27dc

Please sign in to comment.