Skip to content
This repository was archived by the owner on Dec 27, 2022. It is now read-only.

Directory issue when daemonizing via pw2 #36

@stephenkistner

Description

@stephenkistner

Was running into some issues getting dathttpd to play nicely with pw2

dathttpd-error-2.log

Trying to run dathttpd via pm2 would continuously return the above error.

Line 73 of /lib/server.js is what the error references: var dat = dats.find(function (d) { return d.key.toString('hex') === site.datKey })

So looks to be an issue with how the directory's path is handled from pm2, which is (probably?) causing line 73 to return undefined.

I was able to resolve it by manually specifying my directory in the config yml as ~/home/stephen/.dathttpd (adding the tilde is what fixed it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions