Skip to content
Permalink
Browse files

feat(server): pass options that contain dir info to the server entry …

…script
  • Loading branch information
jyounce committed Jul 23, 2015
1 parent b781afe commit aa68acdcf0f304af3b9dad0f28c7d4207ce4f940
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/server/server.coffee
@@ -16,9 +16,16 @@ app.listen port, ->
app.get '/', (req, res) ->
res.sendFile spa, root:client

# options to pass
# ===============
opts =
dir:
relative: config.dist.app.server.scripts.dir
absolute: config.dist.app.server.scripts.path

# load optional app server dist entry script
# ==========================================
try require(appFilePath) app
try require(appFilePath) app, opts
catch e
if e.code and
e.code.toLowerCase() is 'module_not_found' and

0 comments on commit aa68acd

Please sign in to comment.
You can’t perform that action at this time.