{"action":"created","issue":{"url":"https://api.github.com/repos/leafo/lapis/issues/324","labels_url":"https://api.github.com/repos/leafo/lapis/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/leafo/lapis/issues/324/comments","events_url":"https://api.github.com/repos/leafo/lapis/issues/324/events","html_url":"https://github.com/leafo/lapis/issues/324","id":102181325,"number":324,"title":"There's no infomation about lua_package_path","user":{"login":"idevz","id":2113827,"avatar_url":"https://avatars.githubusercontent.com/u/2113827?v=3","gravatar_id":"","url":"https://api.github.com/users/idevz","html_url":"https://github.com/idevz","followers_url":"https://api.github.com/users/idevz/followers","following_url":"https://api.github.com/users/idevz/following{/other_user}","gists_url":"https://api.github.com/users/idevz/gists{/gist_id}","starred_url":"https://api.github.com/users/idevz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevz/subscriptions","organizations_url":"https://api.github.com/users/idevz/orgs","repos_url":"https://api.github.com/users/idevz/repos","events_url":"https://api.github.com/users/idevz/events{/privacy}","received_events_url":"https://api.github.com/users/idevz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-20T16:47:49Z","updated_at":"2015-08-20T23:06:20Z","closed_at":null,"body":"Hi @leafo , I have install lapis 1.3.0-1 through luarocks 2.2, and follow lapis's Doc, I run ```lapis new --lua``` create a lapis's empty app, everything looks going well, but when I run ```lapis server``` I got a 500 mistake, and check the nginx.conf.compiled file I found there's none about ```lua_package_path``` and ```lua_package_cpath```, these directive cause the problem, would you please take a look at this for me, thank you very much.\r\n"},"comment":{"url":"https://api.github.com/repos/leafo/lapis/issues/comments/133207644","html_url":"https://github.com/leafo/lapis/issues/324#issuecomment-133207644","issue_url":"https://api.github.com/repos/leafo/lapis/issues/324","id":133207644,"user":{"login":"idevz","id":2113827,"avatar_url":"https://avatars.githubusercontent.com/u/2113827?v=3","gravatar_id":"","url":"https://api.github.com/users/idevz","html_url":"https://github.com/idevz","followers_url":"https://api.github.com/users/idevz/followers","following_url":"https://api.github.com/users/idevz/following{/other_user}","gists_url":"https://api.github.com/users/idevz/gists{/gist_id}","starred_url":"https://api.github.com/users/idevz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idevz/subscriptions","organizations_url":"https://api.github.com/users/idevz/orgs","repos_url":"https://api.github.com/users/idevz/repos","events_url":"https://api.github.com/users/idevz/events{/privacy}","received_events_url":"https://api.github.com/users/idevz/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T23:06:20Z","updated_at":"2015-08-20T23:06:20Z","body":"Hi @leafo , no ```lua_package_path``` cause a ```module 'lapis' not found``` mistake like this : \r\n```\r\n /Users/zj-lapis/sina/ lapis server\r\nnginx: [alert] lua_code_cache is off; this will hurt performance in /Users/zj-lapis/sina/nginx.conf.compiled:16\r\n2015/08/21 06:58:08 [notice] 8123#0: using the \"kqueue\" event method\r\n2015/08/21 06:58:08 [warn] 8123#0: 1024 worker_connections exceed open file resource limit: 256\r\n2015/08/21 06:58:08 [notice] 8123#0: openresty/1.7.10.1\r\n2015/08/21 06:58:08 [notice] 8123#0: built by clang 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn)\r\n2015/08/21 06:58:08 [notice] 8123#0: OS: Darwin 14.4.0\r\n2015/08/21 06:58:08 [notice] 8123#0: hw.ncpu: 8\r\n2015/08/21 06:58:08 [notice] 8123#0: net.inet.tcp.sendspace: 131072\r\n2015/08/21 06:58:08 [notice] 8123#0: kern.ipc.somaxconn: 128\r\n2015/08/21 06:58:08 [notice] 8123#0: getrlimit(RLIMIT_NOFILE): 256:9223372036854775807\r\n2015/08/21 06:58:08 [notice] 8123#0: start worker processes\r\n2015/08/21 06:58:08 [notice] 8123#0: start worker process 8125\r\n2015/08/21 06:58:14 [error] 8125#0: *1 lua entry thread aborted: runtime error: content_by_lua(nginx.conf.compiled:22):2: module 'lapis' not found:\r\n\tno field package.preload['lapis']\r\n\tno file '/usr/local/nginx_x/lualib/lapis.lua'\r\n\tno file '/usr/local/nginx_x/lualib/lapis/init.lua'\r\n\tno file './lapis.lua'\r\n\tno file '/usr/local/nginx_x/luajit/share/luajit-2.1.0-alpha/lapis.lua'\r\n\tno file '/usr/local/share/lua/5.1/lapis.lua'\r\n\tno file '/usr/local/share/lua/5.1/lapis/init.lua'\r\n\tno file '/usr/local/nginx_x/luajit/share/lua/5.1/lapis.lua'\r\n\tno file '/usr/local/nginx_x/luajit/share/lua/5.1/lapis/init.lua'\r\n\tno file '/usr/local/nginx_x/lualib/lapis.so'\r\n\tno file './lapis.so'\r\n\tno file '/usr/local/lib/lua/5.1/lapis.so'\r\n\tno file '/usr/local/nginx_x/luajit/lib/lua/5.1/lapis.so'\r\n\tno file '/usr/local/lib/lua/5.1/loadall.so'\r\nstack traceback:\r\ncoroutine 0:\r\n\t[C]: in function 'require'\r\n\tcontent_by_lua(nginx.conf.compiled:22):2: in function <content_by_lua(nginx.conf.compiled:22):1>, client: 127.0.0.1, server: , request: \"GET / HTTP/1.1\", host: \"localhost:8080\"\r\n```\r\n\r\nafter I change my default nginx.conf to add these directives, it works. I mean why the default config didn't consider this problem?\r\n*thank you：）*"}}