   grunt.registerTask "build", [ "concurrent:compile", "concurrent:post" ]
 
   grunt.registerTask "serve", "Serve a local copy", ( target ) ->
+    if grunt.option 'allow-remote'
+      grunt.config.set 'connect.options.hostname', '0.0.0.0'
+
     if target is undefined
       grunt.task.run [ "default", "connect:livereload", "watch" ]
 


    connect:
      options:
        port: 9001
        livereload: 35729
      livereload:
        options:
          hostname: "0.0.0.0"
          base: [
            '<%%= config.temp %>'
            '<%%= config.app %>'

# Generated on <%= (new Date).toISOString().split('T')[0] %> using
# <%= pkg.name %> <%= pkg.version %>

module.exports = ( grunt ) ->
  # show elapsed time at the end
  require( "time-grunt" ) grunt
