{"action":"created","issue":{"url":"https://api.github.com/repos/wpengine/hgv/issues/323","repository_url":"https://api.github.com/repos/wpengine/hgv","labels_url":"https://api.github.com/repos/wpengine/hgv/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/wpengine/hgv/issues/323/comments","events_url":"https://api.github.com/repos/wpengine/hgv/issues/323/events","html_url":"https://github.com/wpengine/hgv/issues/323","id":169386118,"number":323,"title":"Multiple enviros in one hgv install","user":{"login":"morganmccol","id":7952438,"avatar_url":"https://avatars.githubusercontent.com/u/7952438?v=3","gravatar_id":"","url":"https://api.github.com/users/morganmccol","html_url":"https://github.com/morganmccol","followers_url":"https://api.github.com/users/morganmccol/followers","following_url":"https://api.github.com/users/morganmccol/following{/other_user}","gists_url":"https://api.github.com/users/morganmccol/gists{/gist_id}","starred_url":"https://api.github.com/users/morganmccol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morganmccol/subscriptions","organizations_url":"https://api.github.com/users/morganmccol/orgs","repos_url":"https://api.github.com/users/morganmccol/repos","events_url":"https://api.github.com/users/morganmccol/events{/privacy}","received_events_url":"https://api.github.com/users/morganmccol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-04T14:20:20Z","updated_at":"2016-09-11T20:59:17Z","closed_at":null,"body":"This previous issue mentions having one hgv install with multiple sites by including a file located in hgv/hgv_data/config/sites/foo.yml:\r\nhttps://github.com/wpengine/hgv/issues/44\r\n\r\nBut how should this file look? When I try something like:\r\n```\r\nwp:\r\n    enviro: hhvm\r\n    multisite: domain\r\n    hhvm_domains:\r\n        - hhvm.hgv.test\r\n        - stage1.hhvm.hgv.test\r\n        - stage2.hhvm.hgv.test\r\n        - stage3.hhvm.hgv.test\r\n    php_domains:\r\n        - php.hgv.test\r\nwp:\r\n    enviro: foo\r\n    multisite: directory\r\n    hhvm_domains:\r\n        - foo.test\r\n    php_domains:\r\n        - php.foo.test\r\n```\r\n\r\nThe first wp enviro (hhvm) is ignored in favor of the second (foo). Foo works with no issues while hhvm leads to a redirect. The file creates a db for both enviros and they both have a folder in hgv_data/config/sites. Removing the second block from the file and provisioning allows hhvm to be accessed again with no issue.\r\n\r\nWhat is the best way to set up the file to access both enviros in one install while keeping their data separate?"},"comment":{"url":"https://api.github.com/repos/wpengine/hgv/issues/comments/246204234","html_url":"https://github.com/wpengine/hgv/issues/323#issuecomment-246204234","issue_url":"https://api.github.com/repos/wpengine/hgv/issues/323","id":246204234,"user":{"login":"andrew40","id":158435,"avatar_url":"https://avatars.githubusercontent.com/u/158435?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew40","html_url":"https://github.com/andrew40","followers_url":"https://api.github.com/users/andrew40/followers","following_url":"https://api.github.com/users/andrew40/following{/other_user}","gists_url":"https://api.github.com/users/andrew40/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew40/subscriptions","organizations_url":"https://api.github.com/users/andrew40/orgs","repos_url":"https://api.github.com/users/andrew40/repos","events_url":"https://api.github.com/users/andrew40/events{/privacy}","received_events_url":"https://api.github.com/users/andrew40/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T20:59:17Z","updated_at":"2016-09-11T20:59:17Z","body":"Have you tried it with setting them both as domains or directory installs. I'm wondering if there are some shared resources that interferes with two types of multisite installation?"}}
{"actor":{"display_login":"andrew40"}}