Skip to content

Commit

Permalink
fix(preview): correct usage of gulp open
Browse files Browse the repository at this point in the history
dunno why it worked before, lol
related to #32
  • Loading branch information
meriadec committed Oct 17, 2015
1 parent 5b9a378 commit ad62d5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/templates/tasks/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ var open = require('gulp-open');
var config = require('../server/config/environment');

var openOpts = {
url: 'http://localhost:' + config.port,
uri: 'http://localhost:' + config.port,
already: false
};

module.exports = function () {
process.env.NODE_ENV = 'production';
require('../dist/server/server');
return gulp.src('client/index.html')
.pipe(open('', openOpts));
return gulp.src('dist/client/index.html')
.pipe(open(openOpts));
};

0 comments on commit ad62d5c

Please sign in to comment.