I have a BDC model in one of my SharePoint projects. This model ultimately needs to be deployed to 3 environments: Dev, Test and Production. Now my Dev environment only has one web application on port 80, and that's the one that my model gets deployed to auto-magically.
For Test and Production, it's a different story. Those environments have the main content and My Sites web applications both on port 80, using host headers. The trouble is that I can't deploy my BDC model in Test or Production without first telling the model which web application to deploy to. As far as I know, the only way to do that is to hard-code the absolute URL of the web application in the model prior to building the WSP. Since the URLs are different for each environment, I have to build different WSPs for Dev, Test and Production. Not cool. The problem is compounded by the fact that the URL is set in a source controlled file. So I have to check that file out, set the URL, build the WSP, deploy, test, and then undo my checkout. I would much prefer to have an automated build process handle this for me.
I've read elsewhere that this can be avoided by only having one web application on port 80. Is this recommended? It seems like not having My Sites on port 80 could be problematic. Are there any other recommendations or suggestions that I'm missing?