Skip to content

Commit

Permalink
Fix gulp startup for server
Browse files Browse the repository at this point in the history
  • Loading branch information
gevalo1 committed Nov 8, 2016
1 parent 83b5637 commit b6fd7ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: false}));
app.use(cookieParser());
//app.use(express.static(path.join(__dirname, 'public')));
//app.use(express.static('./views/'));
//app.use('/*', express.static('./views/index.ejs'));
app.use(express.static('./build/'));
//app.use('/*', express.static('./build/index.html'));

app.use('/', routes);
app.use('/users', users);
Expand All @@ -55,7 +55,7 @@ io.on('connection', (socket) => {

// catch 404 and forward to error handler
app.use((req, res, next) => {
let err = new Error('Not Found');
let err = new Error('Not Found: ' + req.originalUrl);
err.status = 404;
next(err);
});
Expand Down
1 change: 0 additions & 1 deletion gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ gulp.task('default', ['build', 'browser-sync'], function () {
gulp.task('browser-sync', ['nodemon'], function () {
browserSync.init(['./build/**.**'], {
port: 8080,
serveStatic: ['./build/'],
proxy: {
target: 'localhost:8085', // original port
ws: true // enables websockets
Expand Down

0 comments on commit b6fd7ba

Please sign in to comment.