Deploy website +Netlify how to deploy multiple branches using a subdomain?

The situation is the following — there is a repository called suppose site1, in this repository with two branches: master which builds and deploy to the primary domain and the branch blog which I want to deploy to a subdomain because it is virtually another site

The documentation of netlife said that it is possible to do so, provided the deployed branches, that is, the subdomain is formed on the name of the branch as I understand it. But I do not catch up a little: so I can deploy both branches I and need a subdomain or am I wrong? Because Build settings can I specify only one Assembly. And if sobri different? That is essentially two branches and two builds Build command to build different and the Publish directory is also different. How to be in this situation?

It is certainly possible to use a configuration file netlify.toml, but how to configure it for my situation I honestly don't know. Help pliz friends)))

P/S/ Or is it something you can use hooks to do?
March 23rd 20 at 18:43
1 answer
March 23rd 20 at 18:45
One poster on rap/brunch. That is, two branch two sites. I don't remember you from one of the turnip MultiSite to raise having a single "site" in the panel of netlife
Well, I'm supposed to use a subdomain. Well, although you are probably right, will not work.

That is, I understand that you need to have two repository, and two sites on netlife? - suzanne.McKenzie10 commented on March 23rd 20 at 18:48
@suzanne.McKenzie10, one REP. When creating a site, you specify rap And brunch. Subdomains can also be specified if your domain delawarean. - Willa.Kuval commented on March 23rd 20 at 18:51
Domain, my DNS was on the reg ru, then I changed the DNS on netlife and therefore can not add to reg ru subdomain, thought I'd be able to make netlife. So I now throw the DNS you back to create a record for the subdomain and again delegate netlife? Right? - suzanne.McKenzie10 commented on March 23rd 20 at 18:54
@suzanne.McKenzie10, leave DNS on netlife

website -> Build & Deploy -> Deploy contexts -> Branch deploys -> "Let me add individual branches" -> wives names brunches

then Domain management -> Branch subdomains -> ...

and after the push in the branch - it webcam works without the push didn't create.
But there is a downside - all branches have the same Belitsa. - Willa.Kuval commented on March 23rd 20 at 18:57
Thank you, it's all set up. What then is it that the same, came out the other way, back to the DNS Registrar and it set up record And nettipaikka IPS, seems to work, added a subdomain without problems, set up redirects. Will try, will fail, will throw again on netlife. - suzanne.McKenzie10 commented on March 23rd 20 at 19:00

Find more questions by tags Continuous deploymentGitHubDeploymentComputer networksGit