What's the best way to deploy an executable process on a web server?

后端 未结 11 1303
一生所求
一生所求 2021-02-02 03:35

The original question:

The title of this question might be a bit clumsily phrased, but here\'s the situation:

I have a .NET web project deployed on my server.

11条回答
  •  终归单人心
    2021-02-02 04:04

    I would recommend writing a script that you could run on your PC, that would do the deployment over the network (so that you don't have to log in to the target machine every time). I have done it using msbuild, but you can really just go for a batch file.

    I assume your admin process is running a windows service (anyway, it makes sense to run it as a service), so you would deploy it like this (this is part of the msbuild script - you can delete the bits with username and password if you don't need it):

    
        
        
        
           
    
    
    
        
        
        
        
        
        
        
        
    
    

    Deploying IIS web sites is usually a bit more pain, but if you have everything set up on the target machine then possibly it would work to just copy the files over the network (again using the \DeploymentMachine\share or \DeploymentMachine\C$\path addressing).

    Unfortunately deployment is never nice nor elegant :(

    Please let me know if you need clarification on anything

提交回复
热议问题