Using Robocopy To Deploy Sites?
Sep 12, 2010
I want to be able to quickly deploy updates to a site that is fairly busy. For smaller sites I would just FTP the new files over the old ones. This one, however, has a few large dll's that regularly get updated and while they are copying the site is effectively down (plus there is the hassle of making backups of them in case something goes wrong.
My plan is to use TortoiseHg to synchronise with a staging copy on the server over FTP (using netdrive or something similar). I can then check all is running smoothly and once that is complete I would like to run a .bat file (or something else) that will create a backup of the live site (preferably only the files that are about to change, but that is not critical) and then copy the newly changed files over to the live site.
If possible I also want to have the copy ignore certain directories (like user uploads) so that it won't overwrite those files on the live site?
I've heard RoboCopy is the way to go but I'm not sure of where to start. Would I need to call 2 commands (1 for the initial backup and one for the copy)? Is there any way to restore the live site to it's previous state should something go wrong?
The site is in ASP.NET and would be copied to Windows 2003 server.
EDIT: It gets a little tricky when web.config items have changed and need to be merged so that the staging servers settings (appsettings, connection strings, etc) don't get deployed to the live site. How does that get handled?
View 8 Replies
Similar Messages:
Aug 17, 2010
i m not able to open certain sites from internet explorer 7.it is showing all sites as restricted .
View 12 Replies
Jul 16, 2010
I am interested in developing Web Parts that can be used in our ASP.NET sites
and our SharePoint sites. An example Web Part I have in mind is a Post Code (Zip Code) look up.- Visual Studio 2010 Premium- SharePoint Designer 2007- Windows 2003 Server (therefore WSS 3.0)- No SharePoint Server
View 2 Replies
Mar 25, 2011
We plan to develop a ASP.NET ( VS 2010 ) web site.We need to know if there are any ready made startup ASP.NET web sites so we can get them and adjust / upgrade according to our needs.
View 1 Replies
May 31, 2010
I want to create several websites on my domain, and I am wondering how to go about this in MVC? Should I put them all within one project, and create separate folders in each Views, Models and Controllers folder for each site, or would it be better to create a separate project for each site, although I'm not sure how I would integrate
View 5 Replies
Feb 16, 2011
Im working on a project where i will need to create sites programatically when a user completes a sign up process.
so basically if my main site is: www.mysite.com i will need to create subsites in the format of: www.username.mysite.com
where username is an option entered by the user in the signup process to designate a unique identifier for their site.
im working with VB.NET language.
View 5 Replies
Feb 28, 2010
I have a website that writes and reads data from a database.It will help me to read and write to the same database from a separate website.Do I have a problem with "collisions" or are the calls to the database completely separate ?
View 4 Replies
Jan 17, 2011
I am having some trouble getting a second site to work with SSL in IIS 6. The server is Windows Server 2003 Service Pack 2.
I am getting the error "IIS was unable to start the site, Another site may already be using the port you configured for this site. Please select an unused port"
Both sites have different IP address but are on port 443.
When I stop one - I can start the other. But cannot run both at the same time.
I have tried editing MetaBase.xml file as a workaround but the file seems to be readonly. When I go to save, I get prompted to create a file.
View 5 Replies
Nov 2, 2010
I have custom redirection implemented in a module. Do I have to modify each config for all sites or is there a more general approach?Also, I have files in App_Data for this module, which would cause replication.
View 1 Replies
Sep 4, 2010
There is a website www.example.net and it has a Forum link on its home page which leads to forum.example.com/content.
I found out that the main site has been developed using the .NET Framework, and the forum has been built using PHP based vBulletin.
Are these two different domains? In other words, is the Forum some folder inside the Visual Studio Project www.example.net running as part of the ASP.NET website? Or is "forum.example.com/content a link to an altogether different website?
View 7 Replies
Apr 8, 2010
I have two websites that run on two different servers and they both both have their own asp membership databases. One is http:// and one is https://. Is it possible to create a way that a user can access both websites while only entering username and password once? Or if the user logs onto the https site can I then redirect to the http site and auto authenticate?
View 3 Replies
Feb 8, 2011
i have some website with users that registered trought membership. I want to build another site (diffrent url, diffrent issue) but i want my user to use the same details (username, password, email etc) they are using the first site. is it possible to use the same aspnet_ tables in diffrent website?
View 3 Replies
Aug 12, 2010
I am looking to use an open source CMS/blog site like WordPress or Drupal. I need it to work with the ASP.NET Membership I already have running my current website and community site.
I am assuming I need to muck with (hand write) some cookies to pass back and forth. So how would/have you done it? I am looking for creative ideas on how to make this happen smoothly and securely.
View 2 Replies
Jan 6, 2011
have a situation where we have multiple versions of the same website but they run on different versions of MVC. Rather than have to try to keep t a web.config variable up-to-date for each site with it's version of MVC is there anyway that I can determine the version programmatically display the version and display it on my home page?
View 2 Replies
Nov 15, 2010
I have two sites: a site written in vb (site 1), a site written in C # (Site 2).
Site 1 running on a primary domain, eg http://abc.com. site 2 run as sub domain, eg http://site2.abc.com.Now I do not want to run the site 2 as a sub domain 2 again, which would put it in a folder of the site 1, for //abc.com/site2/Default.aspx.So now we have to configure in a site how to run the site 2.
View 2 Replies
Jan 27, 2011
I found an article which explains how to perform a Web.config transformation on an ASP.Net 4.0 Web Site, but all of my web sites are still running ASP.Net 3.5.[URL]
View 1 Replies
Jan 23, 2011
I'm trying to configure my Solution to publish multiple web sites to Azure using the 1.3 SDK and I want them to run under one Web Role. I've added the entry to the Sites element as per the CHM file and when I deploy to Azure the Instance starts up. Now for the symptoms:
Browsing to the "Primary" (first site added to the solution) everything works fine.
Browsing to the "Secondary" site throws the following error:
Exception type: ConfigurationErrorsException Exception message: Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (E:approot_WASR_1web.config line 28)
What have I tried so far without success (sigh):
1. I noticed that by default VStudio (2010 Ultimate) did not include the "Secondary" project output in the cspkg file. Setting a project dependency seems to have fixed that problem (or at least I now see it in the output window during the build process).
2. I've set "Copy Local=true" for the System.Web.Mvc on the "Secondary" project still nothing.
3. I have a CName setup for the "Secondary" project and use the hostHeader parameter on the Binding element so I haven't found a good way of testing this local so I'm limited in diagnostic info.
One thought that I had was that both projects now contain a WebRole.cs file, should that be the case in this configuration?
View 1 Replies
Apr 24, 2010
I Just started to work in ASP.Net.I am beginner. Please suggest me the best books for Beginner,Intermediate and Advance in ASP.Net
Also suggest me the links to start with an ASP.Net
View 12 Replies
Jan 27, 2011
In webform one could add pages to his website simply by adding them to the correct directory in the virtual directory.
In MVC however you need to write new controlls is that mean i should "recompile" the whole site all over again?
My site is alreay online and i dont wont to go off line to add additional feature.
View 6 Replies
Dec 7, 2010
run asp.net 3.5 sites on asp.net 4.0 without changing codeweb.config. Is it possible?
View 3 Replies
Oct 21, 2010
We have an application that is currently required to be accessed using two authentication schemes, Forms Auth and Active Directory or NTLM / Windows Auth.The way the application is now, there are two IIS sites pointing to different folders with the same set of files, everything identical except the web.config.Before anyone flames me this was an inherited application, but nevertheless one I am now responsible for. We have an opportunity to do some refactoring and I'm trying to figure out the best way to proceed.
View 1 Replies
May 15, 2010
At my current place of employment, a university, we are going to take a stab at making a mobile browser-oriented section of our web site. I was wondering if anyone could direct me to some good resources that they know of for such a thing. Primarily, names of books would be nice, but any kind of resource at this point would be extremely helpful. We are approaching this as more of an HTML project at the moment, so the resources don't need to be Asp.Net based, but such things would be great too.
View 4 Replies
May 25, 2010
We have two asp.net sites (based on episerver). Using Telerik Asp.net controls. We have some funtionality that we want to have availible in both sites. Right now one of the sites use webparts/usercontrols and the other uses usercontrols.
Is there any way to share the functionality between these sites? What I would like is to be able to share usercontrols between the sites.
View 3 Replies
Mar 20, 2010
I am trying to build a web site with ASP.NET MVC, I'm new to this. My question is: how can I display the default login dialog? I am not referring to a custom dialog, like the jQuery Dialog, there is a default pop-up for credentials, which looks different depending on browser, same as with javascript alert(), but I don't know how to display it. To know what I mean, go to [URL] there is a Login button at the bottom of the page, when you click it a pop-up appears. That is what I want to display.
View 2 Replies
Jan 5, 2010
Besides stackoverflow, what are the best sites to showcase my development skills?
For those sites that are specific to a particular set of skills, I am a ASP.Net developer and I use c# primarily.
Edit:
Something to send potential employers, and something that they would find easily during a Google search of me.
View 7 Replies