grunt-express
grunt-express copied to clipboard
Hostname Not Specified using defaults
Unable to start server using defaults. Saying that hostname is not specified. Documentation states that "localhost" is the default hostname.
Gruntfile:
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// SASS
sass: {
dist: {
files: {
'css/styles.css': 'scss/styles.scss',
}
},
},
// WATCH
watch: {
sass: {
files: ['scss/**/*.scss'],
tasks: ['sass'],
options: {
livereload: true,
}
},
},
// EXPRESS
express: {
default_option: {},
},
});
// Load plugins
grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-express');
// Default task(s)
grunt.registerTask('default', ['express', 'sass', 'watch']);
};
Terminal output:
Running "express:use_defaults" (express) task
Running "express-server:use_defaults" (express-server) task
Web server started on port:3000, no hostname specified [pid: 22167]