Skip to content

Commit

Permalink
extrapolate www path
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil committed Jan 25, 2018
1 parent a2a0789 commit a89d7a4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/sails-www.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ module.exports = function() {
var log = CaptainsLog(rconf.log);

// The destination path.
var wwwPath = path.resolve(process.cwd(), './www');
var originalWwwPath = 'www';
var wwwPath = path.resolve(process.cwd(), originalWwwPath);

// Determine the appropriate Grunt task to run based on `process.env.NODE_ENV`, `rconf.prod`, and `rconf.environment`.
var overrideGruntTask;
Expand All @@ -92,7 +93,7 @@ module.exports = function() {
else {
overrideGruntTask = 'build';
}
log.info('Compiling assets into standalone `www` directory with `grunt ' + overrideGruntTask + '`...');
log.info('Compiling assets into standalone `'+originalWwwPath+'` directory with `grunt ' + overrideGruntTask + '`...');

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Execute a command like you would on the terminal.
Expand All @@ -110,7 +111,7 @@ module.exports = function() {
}

log.info();
log.info('Created `www` directory at:');
log.info('Created directory of compiled static assets at:');
log.info(wwwPath);
return process.exit(0);

Expand Down

0 comments on commit a89d7a4

Please sign in to comment.