database - ASP.net MVC How to run multiple instances of the same app at the same time in different subdomains? -
ASP.NET MVC
How to run more than one instance of the same app at the same time Subdomain?
I have a dozen or more subdomains.
sub1.website.com sub2.website.com
and such a folder structure
\ website \ sub1 \ website \ sub2
< P> If I need to run the same app for all subdomains, what would be the best app?The host is in the root \ website \ and it has come to know where on the basis of "user" will you see? (I think I need to implement the logic in the code)
OR
Just copy the app into each sub-domain, and the app "do not know" that it Is there really an example? (This would mean that when I update the app, I have to copy it everywhere)
What other views do you have on this issue? Each app will use a different database name so that we need to codify in some type of external file.
If they use different databases, then I mean that they are completely The different sites are irrelevant to the fact that they are similar codebes.
/ website / all 1 / website / all 2
deploy each> yes, when you release a new code You have to do it in each folder, but it is always a deployment problem, nor complicate your code or some external configurations to compensate.
Write a deployment script, Ruby / PowerShell / whatever happens if its major headache is
Comments
Post a Comment