{"action":"created","issue":{"url":"https://api.github.com/repos/mattdesl/budo/issues/27","labels_url":"https://api.github.com/repos/mattdesl/budo/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/mattdesl/budo/issues/27/comments","events_url":"https://api.github.com/repos/mattdesl/budo/issues/27/events","html_url":"https://github.com/mattdesl/budo/issues/27","id":68036016,"number":27,"title":"--live doesn't work with docker","user":{"login":"oren","id":6517,"avatar_url":"https://avatars.githubusercontent.com/u/6517?v=3","gravatar_id":"","url":"https://api.github.com/users/oren","html_url":"https://github.com/oren","followers_url":"https://api.github.com/users/oren/followers","following_url":"https://api.github.com/users/oren/following{/other_user}","gists_url":"https://api.github.com/users/oren/gists{/gist_id}","starred_url":"https://api.github.com/users/oren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oren/subscriptions","organizations_url":"https://api.github.com/users/oren/orgs","repos_url":"https://api.github.com/users/oren/repos","events_url":"https://api.github.com/users/oren/events{/privacy}","received_events_url":"https://api.github.com/users/oren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-13T08:06:44Z","updated_at":"2015-04-13T21:05:53Z","closed_at":null,"body":"fantastic library!\r\n\r\nI am trying to make it work inside a docker container and it detects the file change but my browser does not refreshing itself. I assume it's something to do with tiny-lr and maybe some unix sockets issue between the container and my laptop. i'll investigate as soon as possible. here is the repo to reproduce my issue\r\nhttps://github.com/oren/budo-template\r\n\r\n(i might need to pass `-e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix` to my run command)"},"comment":{"url":"https://api.github.com/repos/mattdesl/budo/issues/comments/92498773","html_url":"https://github.com/mattdesl/budo/issues/27#issuecomment-92498773","issue_url":"https://api.github.com/repos/mattdesl/budo/issues/27","id":92498773,"user":{"login":"oren","id":6517,"avatar_url":"https://avatars.githubusercontent.com/u/6517?v=3","gravatar_id":"","url":"https://api.github.com/users/oren","html_url":"https://github.com/oren","followers_url":"https://api.github.com/users/oren/followers","following_url":"https://api.github.com/users/oren/following{/other_user}","gists_url":"https://api.github.com/users/oren/gists{/gist_id}","starred_url":"https://api.github.com/users/oren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oren/subscriptions","organizations_url":"https://api.github.com/users/oren/orgs","repos_url":"https://api.github.com/users/oren/repos","events_url":"https://api.github.com/users/oren/events{/privacy}","received_events_url":"https://api.github.com/users/oren/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T21:05:53Z","updated_at":"2015-04-13T21:05:53Z","body":"docker is not a vm. it's a process that is 'special'. it's a process that give us a nice isolation (file system, mount, networking) and this process is sharing the kernel with the host (our laptops, in our case). it's an old feature of linux (chroot) that was recently wrapped with an easy to use API.\r\n\r\nYou can edit all your files (app.js in our case) as usual on your laptop. use vim/sublime/whatever. thanks to the volumes key (https://github.com/oren/budo-template/blob/master/docker-compose.yml) we can mount the project's folder into the container so our project's folder is available to the container.\r\n\r\nI tried your watch2 script and it detect the file change. both watchify alone and budo are detecting the file change. i know it since i see it in the log. what doesn't happened is my browser does not refresh. i need to figure out a way to tell the container that my chrome is running on my laptop and not inside the container."}}