{"action":"created","issue":{"url":"https://api.github.com/repos/caddyserver/caddydev/issues/2","labels_url":"https://api.github.com/repos/caddyserver/caddydev/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/caddyserver/caddydev/issues/2/comments","events_url":"https://api.github.com/repos/caddyserver/caddydev/issues/2/events","html_url":"https://github.com/caddyserver/caddydev/issues/2","id":107247274,"number":2,"title":"write something about paths in the documentation","user":{"login":"wmark","id":191736,"avatar_url":"https://avatars.githubusercontent.com/u/191736?v=3","gravatar_id":"","url":"https://api.github.com/users/wmark","html_url":"https://github.com/wmark","followers_url":"https://api.github.com/users/wmark/followers","following_url":"https://api.github.com/users/wmark/following{/other_user}","gists_url":"https://api.github.com/users/wmark/gists{/gist_id}","starred_url":"https://api.github.com/users/wmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmark/subscriptions","organizations_url":"https://api.github.com/users/wmark/orgs","repos_url":"https://api.github.com/users/wmark/repos","events_url":"https://api.github.com/users/wmark/events{/privacy}","received_events_url":"https://api.github.com/users/wmark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-18T17:50:45Z","updated_at":"2015-09-18T19:25:19Z","closed_at":null,"body":"I am following the (scattered) documentations on how to write a module for *Caddy*…:\r\n\r\n```bash\r\nexport GOPATH=$(mktemp -d -t \"caddydev.XXXXXX\")\r\n\r\ngo get -v -t github.com/caddyserver/caddydev\r\ngo get -v -t -u github.com/mholt/caddy\r\ngo get -v -t -d blitznote.com/src/caddy.upload\r\n\r\neval cd $GOPATH/src/blitznote.com/src/caddy.upload\r\n```\r\n\r\n… and am getting this error:\r\n```bash\r\n$ eval $GOPATH/bin/caddydev --source blitznote.com/src/caddy.upload upload\r\nInvalid source directory.\r\n```\r\n\r\nAlright, we obviously need an absolute path, so:\r\n```bash\r\n$ eval $GOPATH/bin/caddydev --source $GOPATH/src/blitznote.com/src/caddy.upload upload &\r\n$ curl -f 127.0.0.1:2015\r\ncurl: (22) The requested URL returned error: 404 Not Found\r\n$ kill %1\r\n```\r\n\r\nDirective ```caddy.upload``` doesn't work, too. At this point the only file, ```holla.go```, is a copy of the example ```hello.go```.\r\n\r\nIn case of the second error I expect *caddydev* to not start at all and throw an error like \"directive without effect\" or \"directive not implemented.\""},"comment":{"url":"https://api.github.com/repos/caddyserver/caddydev/issues/comments/141544400","html_url":"https://github.com/caddyserver/caddydev/issues/2#issuecomment-141544400","issue_url":"https://api.github.com/repos/caddyserver/caddydev/issues/2","id":141544400,"user":{"login":"wmark","id":191736,"avatar_url":"https://avatars.githubusercontent.com/u/191736?v=3","gravatar_id":"","url":"https://api.github.com/users/wmark","html_url":"https://github.com/wmark","followers_url":"https://api.github.com/users/wmark/followers","following_url":"https://api.github.com/users/wmark/following{/other_user}","gists_url":"https://api.github.com/users/wmark/gists{/gist_id}","starred_url":"https://api.github.com/users/wmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmark/subscriptions","organizations_url":"https://api.github.com/users/wmark/orgs","repos_url":"https://api.github.com/users/wmark/repos","events_url":"https://api.github.com/users/wmark/events{/privacy}","received_events_url":"https://api.github.com/users/wmark/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T19:25:19Z","updated_at":"2015-09-18T19:25:19Z","body":"I've discovered that I need a ```Caddyfile``` like this, despite having passed the directive to *caddydev*:\r\n```text\r\n0.0.0.0\r\n\r\nupload\r\n```"}}