Re: Publishing my Web Site
- From: "Scott Roberts" <sroberts@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 11 Feb 2008 13:16:21 -0600
How many files do you want to exclude? Just the DB and web.config?
I also have a folder that I keep my notes and some working graphics files.
Gotcha. Just delete the folder after the "local publish".
Am I the only one who needs a different web.config file on my site from the one on my development machine? I seriously doubt it but MS seems to assume I am.
What, specifically, is different? For me, it's only connection strings, which I modify manually after the "publish" to a local folder.
There's a few things (some error settings, for example). Does this mean you have to recreate the settings after every time you publish your site?
Well, yes and no. I tend to not change my web.config very often so many times I simply exclude it from the zip file that I upload to the web host. Since I don't delete existing files first, the new files simply overwrite the existing ones and the existing web.config remains in-tact. On bigger changes (where you *do* want to delete existing files) or if you have added settings to your web.config then yes, you have to modify web.config after the "local publish".
If all of this "modify after you publish locally" stuff is too cumbersome, you might consider the add-in recommended by Mark. It appears to have been developed specifically to address the short-comings of the built-in "publish" command.
.
- Follow-Ups:
- Re: Publishing my Web Site
- From: Mark Rae [MVP]
- Re: Publishing my Web Site
- From: Jonathan Wood
- Re: Publishing my Web Site
- References:
- Re: Publishing my Web Site
- From: Jonathan Wood
- Re: Publishing my Web Site
- From: Mark Rae [MVP]
- Re: Publishing my Web Site
- From: Jonathan Wood
- Re: Publishing my Web Site
- From: Scott Roberts
- Re: Publishing my Web Site
- From: Jonathan Wood
- Re: Publishing my Web Site
- Prev by Date: Re: Regular Expression for a password
- Next by Date: Help to convert VB.net code
- Previous by thread: Re: Publishing my Web Site
- Next by thread: Re: Publishing my Web Site
- Index(es):
Relevant Pages
|