This article builds on the previous post
Under normal circumstances, once your website has been published, you should make any further changes directly on the published site. However, there may be occasions where it is useful to download the published site. It could be useful if you see an error message on your published site to download the site back to your local environment where you will get more error information; or maybe, if you want to test out some new ideas, or if you want to move your site to another server.
Doing this is very easy with WebMatrix, as long as the site was originally published using WebMatrix. Be aware, though, that when you download your published website, you will be overwriting your local one and therefore lose any changes that you had made to it. It is always good practice to backup anything you do not want to lose before doing something like this.
Open WebMatrix and select the MojoPortal Demo website.
Select Publish | Download Published Site
Then, select the files you want to download and the database
When I do this, I generally download everything. Note, however, if you download the web.config oruser.config you may need to edit it – for example the connection string will need to be edited to make it correct for your local environment. It may be appropriate for you to untick web.config and user.config so that they are not downloaded.
Now, you just press Continue and give it plenty of time to complete.
Once downloading is complete, you can find the user.config and web.config using Windows Explorer and edit them as necessary. I suggest using Notepad++ for this.
And that’s it! Your published website is downloaded.
Of course, it is now possible for you to make changes to your newly downloaded local website and then publish again, overwriting your remote website. If you do this, however, you should first make sure you understand that any changes made in the intervening time to the published website will be lost. For this reason, it is not a good idea to download and republish without thinking through the consequences.
Looking for quality mojoPortal Hosting? Look no further than Arvixe Web Hosting.