{"action":"created","issue":{"url":"https://api.github.com/repos/elixir-lang/plug/issues/411","repository_url":"https://api.github.com/repos/elixir-lang/plug","labels_url":"https://api.github.com/repos/elixir-lang/plug/issues/411/labels{/name}","comments_url":"https://api.github.com/repos/elixir-lang/plug/issues/411/comments","events_url":"https://api.github.com/repos/elixir-lang/plug/issues/411/events","html_url":"https://github.com/elixir-lang/plug/issues/411","id":161765285,"number":411,"title":"Static `:from` tuple is ignored","user":{"login":"lukeed","id":5855893,"avatar_url":"https://avatars.githubusercontent.com/u/5855893?v=3","gravatar_id":"","url":"https://api.github.com/users/lukeed","html_url":"https://github.com/lukeed","followers_url":"https://api.github.com/users/lukeed/followers","following_url":"https://api.github.com/users/lukeed/following{/other_user}","gists_url":"https://api.github.com/users/lukeed/gists{/gist_id}","starred_url":"https://api.github.com/users/lukeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukeed/subscriptions","organizations_url":"https://api.github.com/users/lukeed/orgs","repos_url":"https://api.github.com/users/lukeed/repos","events_url":"https://api.github.com/users/lukeed/events{/privacy}","received_events_url":"https://api.github.com/users/lukeed/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-06-22T19:25:46Z","updated_at":"2016-06-22T19:58:46Z","closed_at":"2016-06-22T19:58:46Z","body":"From docs:\r\n\r\n`:from` - the filesystem path to read static assets from. It must be a string, containing a file system path, or an atom representing the application name where assets will be served from the priv/static, _or a tuple containing the application name and the directory to serve assets besides priv/static_.\r\n\r\n**Trials:**\r\n\r\nFor each attempt, I placed the \"abc123\" directory at\r\n* `priv/abc123`\r\n* `priv/static/abc123`\r\n* `abc123`\r\n\r\n```\r\n# 1\r\nplug Plug.Static,\r\n    at: \"/uploads\", from: {:my_app, \"abc123\"}\r\n\r\n# 2\r\nplug Plug.Static,\r\n    at: \"/uploads\", from: {:my_app, \"/abc123\"}\r\n\r\n# 3 - also placed dir at \"web/abc123\r\nplug Plug.Static,\r\n    at: \"/uploads\", from: {:my_app, \"web/abc123\"}\r\n```\r\n\r\nThe only way to get it working was to **not** use a tuple.\r\n\r\n```\r\n# directory lives at \"/abc123\"\r\nplug Plug.Static,\r\n    at: \"/uploads\", from: \"abc123\"\r\n```"},"comment":{"url":"https://api.github.com/repos/elixir-lang/plug/issues/comments/227858844","html_url":"https://github.com/elixir-lang/plug/issues/411#issuecomment-227858844","issue_url":"https://api.github.com/repos/elixir-lang/plug/issues/411","id":227858844,"user":{"login":"ericmj","id":316890,"avatar_url":"https://avatars.githubusercontent.com/u/316890?v=3","gravatar_id":"","url":"https://api.github.com/users/ericmj","html_url":"https://github.com/ericmj","followers_url":"https://api.github.com/users/ericmj/followers","following_url":"https://api.github.com/users/ericmj/following{/other_user}","gists_url":"https://api.github.com/users/ericmj/gists{/gist_id}","starred_url":"https://api.github.com/users/ericmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericmj/subscriptions","organizations_url":"https://api.github.com/users/ericmj/orgs","repos_url":"https://api.github.com/users/ericmj/repos","events_url":"https://api.github.com/users/ericmj/events{/privacy}","received_events_url":"https://api.github.com/users/ericmj/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T19:58:46Z","updated_at":"2016-06-22T19:58:46Z","body":"@lukeed If you look into `_build/dev/lib/MY_APP` you will see the files that are included in your applications build environment."}}
{"actor":{"display_login":"ericmj"}}