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

后端 未结 11 1302
一生所求
一生所求 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 03:51

    I would write a command-line application that would do all of that.

    Here is a rough example:

    Site.api.publish();
    admin.api.shutdown();
    while(shell.status("admin.exe") == true) {}; //still running
    file.replace("admin.exe", "path-to-compile\admin.exe");
    shell.run("admin.exe");
    

    You probably get the point. If you want it to do it automatically just use the Task Schedular to call it every day, or however often you want it.

提交回复
热议问题