Skip to content

Commit

Permalink
Resolve full base path for express config
Browse files Browse the repository at this point in the history
Fixes issue #104
  • Loading branch information
Mathew Hartley committed Nov 26, 2013
1 parent 04f0434 commit 9e7d618
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
# Thanks to Jackson Gariety (https://github.com/jacksongariety/) for
# Thanks to Jackson Gariety (https://github.com/jacksongariety/) for
# contributing the initial version of this Gruntfile.

module.exports = (grunt) ->
path = require('path')
# Configure plugins
grunt.initConfig

express:
all:
options:
port: 8000
hostname: "0.0.0.0"
bases: ['.']
bases: [path.resolve(__dirname, '.')]

open:
all:
Expand Down Expand Up @@ -56,7 +57,7 @@ module.exports = (grunt) ->
options:
livereload: true


# Load plugins
grunt.loadNpmTasks "grunt-contrib-watch"
grunt.loadNpmTasks "grunt-contrib-coffee"
Expand All @@ -70,4 +71,4 @@ module.exports = (grunt) ->
"express",
"open",
"watch"
]
]

0 comments on commit 9e7d618

Please sign in to comment.