Reputation: 3590
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
Upvotes: 0
Views: 732
Reputation: 4836
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.
Upvotes: 0
Reputation: 25823
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.
Upvotes: 0
Reputation: 1892
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.
Upvotes: 2
Reputation: 1040
If you have local network access, why not just map the remote "c:\Inetpub\wwwroot\Website1" folder locally, and deploy to this share?
Upvotes: 0