Skip to content

Commit

Permalink
πŸš€ Watch devdash modules for server reload (#21711)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorozco committed Apr 4, 2019
1 parent 613b5e2 commit 7793c82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-system/tasks/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const colors = require('ansi-colors');
const gulp = require('gulp-help')(require('gulp'));
const log = require('fancy-log');
const nodemon = require('nodemon');
const path = require('path');

const host = argv.host || 'localhost';
const port = argv.port || process.env.PORT || 8000;
Expand Down Expand Up @@ -50,6 +51,9 @@ function serve() {
require.resolve('../app.js'),
require.resolve('../routes/analytics.js'),
require.resolve('../server.js'),

// All devdash routes:
path.dirname(require.resolve('../app-index')),
],
env: {
'NODE_ENV': 'development',
Expand Down

0 comments on commit 7793c82

Please sign in to comment.