Skip to content

Hostname Not Specified using defaults #74

Description

@jremydeaton

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions