{"action":"created","issue":{"url":"https://api.github.com/repos/oppia/oppia/issues/2638","repository_url":"https://api.github.com/repos/oppia/oppia","labels_url":"https://api.github.com/repos/oppia/oppia/issues/2638/labels{/name}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/2638/comments","events_url":"https://api.github.com/repos/oppia/oppia/issues/2638/events","html_url":"https://github.com/oppia/oppia/pull/2638","id":184767802,"number":2638,"title":"#2637 Determine Vagrant env by checking existence of a file and env var","user":{"login":"ubhisat","id":3360141,"avatar_url":"https://avatars.githubusercontent.com/u/3360141?v=3","gravatar_id":"","url":"https://api.github.com/users/ubhisat","html_url":"https://github.com/ubhisat","followers_url":"https://api.github.com/users/ubhisat/followers","following_url":"https://api.github.com/users/ubhisat/following{/other_user}","gists_url":"https://api.github.com/users/ubhisat/gists{/gist_id}","starred_url":"https://api.github.com/users/ubhisat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubhisat/subscriptions","organizations_url":"https://api.github.com/users/ubhisat/orgs","repos_url":"https://api.github.com/users/ubhisat/repos","events_url":"https://api.github.com/users/ubhisat/events{/privacy}","received_events_url":"https://api.github.com/users/ubhisat/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/oppia/oppia/labels/PR:%20LGTM","name":"PR: LGTM","color":"009800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-24T07:29:55Z","updated_at":"2016-10-24T19:20:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/2638","html_url":"https://github.com/oppia/oppia/pull/2638","diff_url":"https://github.com/oppia/oppia/pull/2638.diff","patch_url":"https://github.com/oppia/oppia/pull/2638.patch"},"body":"Currently, vagrant env is checked for existence of an environment variable that is set at provision time. This does not work all the time when the vagrant system is rebooted.\r\nThis fix, adds a file and checks the existence of the file `/etc/is_vagrant_vm` along with environment variable `$VAGRANT` to determine if the host is vagrant and invokes other scripts accordingly.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/oppia/oppia/issues/comments/255838612","html_url":"https://github.com/oppia/oppia/pull/2638#issuecomment-255838612","issue_url":"https://api.github.com/repos/oppia/oppia/issues/2638","id":255838612,"user":{"login":"seanlip","id":10575562,"avatar_url":"https://avatars.githubusercontent.com/u/10575562?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlip","html_url":"https://github.com/seanlip","followers_url":"https://api.github.com/users/seanlip/followers","following_url":"https://api.github.com/users/seanlip/following{/other_user}","gists_url":"https://api.github.com/users/seanlip/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlip/subscriptions","organizations_url":"https://api.github.com/users/seanlip/orgs","repos_url":"https://api.github.com/users/seanlip/repos","events_url":"https://api.github.com/users/seanlip/events{/privacy}","received_events_url":"https://api.github.com/users/seanlip/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T19:20:31Z","updated_at":"2016-10-24T19:20:31Z","body":"Looks good!\r\n\r\n@ubhisat -- re @bbriggs's comment, worth adding a comment to the Vagrantfile for future developers saying \"all other scripts should come after this line\"?"}}
{"actor":{"display_login":"seanlip"}}