{"action":"created","issue":{"url":"https://api.github.com/repos/go-macaron/macaron/issues/63","labels_url":"https://api.github.com/repos/go-macaron/macaron/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/go-macaron/macaron/issues/63/comments","events_url":"https://api.github.com/repos/go-macaron/macaron/issues/63/events","html_url":"https://github.com/go-macaron/macaron/issues/63","id":117585336,"number":63,"title":"public 问题","user":{"login":"transtone","id":46688,"avatar_url":"https://avatars.githubusercontent.com/u/46688?v=3","gravatar_id":"","url":"https://api.github.com/users/transtone","html_url":"https://github.com/transtone","followers_url":"https://api.github.com/users/transtone/followers","following_url":"https://api.github.com/users/transtone/following{/other_user}","gists_url":"https://api.github.com/users/transtone/gists{/gist_id}","starred_url":"https://api.github.com/users/transtone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/transtone/subscriptions","organizations_url":"https://api.github.com/users/transtone/orgs","repos_url":"https://api.github.com/users/transtone/repos","events_url":"https://api.github.com/users/transtone/events{/privacy}","received_events_url":"https://api.github.com/users/transtone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-18T13:20:53Z","updated_at":"2015-11-18T14:51:03Z","closed_at":null,"body":"报告一个很奇葩的问题，public文件夹中不能放名字含 “manager”的js文件，否则不会被当做静态文件处理，而转到下面的路由请求了。\r\n有manager的情况(已将public改名为static)：\r\n```\r\n[Macaron] Started GET /static/build/manager.js for 127.0.0.1\r\n[Macaron] Completed /static/build/manager.js 404 Not Found in 5.5054ms\r\n[Macaron] Started GET /static/build/manager.js for 127.0.0.1\r\n[Macaron] Completed /static/build/manager.js 404 Not Found in 5.508ms\r\n```\r\n再来：\r\n```\r\n[Macaron] Started GET /static/jslib/marked.min.js for 127.0.0.1\r\n[Macaron] [Static] Serving /jslib/marked.min.js\r\n[Macaron] Completed /static/jslib/marked.min.js 304 Not Modified in 0\r\n[Macaron] Started GET /static/dist/manager.min.js for 127.0.0.1\r\n[Macaron] Completed /static/dist/manager.min.js 404 Not Found in 7.0053ms\r\n[Macaron] Started GET /static/dist/manager.min.js for 127.0.0.1\r\n[Macaron] Completed /static/dist/manager.min.js 404 Not Found in 4.0029ms\r\n```\r\n改名：\r\n```\r\n[Macaron] Started GET /static/jslib/marked.min.js for 127.0.0.1\r\n[Macaron] [Static] Serving /jslib/marked.min.js\r\n[Macaron] Completed /static/jslib/marked.min.js 304 Not Modified in 0\r\n[Macaron] Started GET /static/build/manage.js for 127.0.0.1\r\n[Macaron] [Static] Serving /build/manage.js\r\n[Macaron] Completed /static/build/manage.js 200 OK in 0\r\n```"},"comment":{"url":"https://api.github.com/repos/go-macaron/macaron/issues/comments/157737937","html_url":"https://github.com/go-macaron/macaron/issues/63#issuecomment-157737937","issue_url":"https://api.github.com/repos/go-macaron/macaron/issues/63","id":157737937,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T14:51:03Z","updated_at":"2015-11-18T14:51:03Z","body":"能发一下你注册 public 的代码和你的镜头文件目录结构吗？"}}