Skip to content

server.js fails on res.sendfile  #5

@anodejeff

Description

@anodejeff

Doesn't work with latest version of node.js I'm using (v0.10.28). Get an error caused by passing a non-string to path.join

Got it working by changing sever.js line 9 from:
res.sendfile('index.html');

to
res.sendfile('index.html', {root: __dirname});

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