Question

I am trying to create command line command to do this. I already deploy website using aspnet_compiler to local drive.

Now I am trying to copy these files to remote machine IIS:

is it possible to use aspnet_compiler to directly deploy on remote IIS something like this

aspnet_compiler -v /Website1 -p c:\Projects\WebSite -f test.lala.com:"c:\Inetpub\wwwroot\Website1"

I know this command is wrong but I was wondering if someone knows how to do this using aspnet_compiler or just to tell me how to copy all of those files to remote machines c:\Inetpub\wwwroot\Website1

Was it helpful?

Solution

If you have local network access, why not just map the remote "c:\Inetpub\wwwroot\Website1" folder locally, and deploy to this share?

OTHER TIPS

The command you are looking for is called "xcopy". You use the commandline to generate the deployment files on your local, then use xcopy to move the files to the remote machine.

Syntax here.

I've done this before. Microsoft has command-line utilities for this, such as the Migration Tool. In some cases, the utility only needs to be on the source server. In some versions of IIS, it must be installed on both the remote and the local server. You may need to update your host headers once you're done, especially if they use IP for the host instead of localhost.

Well, if you're deploying locally or if you have WebDAV enabled, you can deploy using a UNC:

aspnet_compiler -v /Website1 -p c:\Projects\WebSite -f \\test.lala.com\Website1

With intranet deployment, have your web admin set up a share on your web site and use \\ <server>\WebSite1 as your target.

With WebDAV, you have to configure your site for publishing. Mitch Tulloch has a nice article about it, or you can search TechNet.

Web deployment tool is used for this purpose now.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top