Github auto deployment in IIS?

I found a way to use the .php page to automatically deploy, quick and dirty, using the url after receiving it. Thus, you put the following on the page of your site:

<?php `git pull`; ?>

Put this page URL in GiHub and bang, automatically expand. It works great. Is there something similar or equivalent for .ASP? I have a site running on IIS 6.0, and it would be great to make an ASP equivalent.

I talk about installing PHP on an IIS server, it seems like a waste on the sigle page only and it will open me the security problem and fix PHP. Rather, just use some .ASP code.

You can find what I need through Google, GitHub: Gists or iis.net.

Thank!

+3
source share
3 answers

I don't know anything about PHP except for its script. But ASP.NET projects, like other types of .NET projects, need to be built. In any case, check out AppHarbor outside.

+2
source

First of all, you need to install git on your server. then run the git command on the asp page. if you are using asp classic try something like this:

<%
    Dim oShell
    Set oShell = Server.CreateObject("Wscript.Shell")
    oShell.Run "git pull"
    Set oShell = Nothing
%>

it will do the same job as PHP.

if you are looking for asp.net version. Ive a simple github project: https://github.com/tshwangq/IISDeploy

+1
source

WebHook-URL-, URL- , GitHub PHP . . , git pull Apache. ASP.NET.

: PHP GitHub > Webserver. , ASP.NET( .NET) . PHP IIS .

, ASP.NET, :

, .

0

All Articles