Publishing Orchard on Azure Web Sites using Git

The Windows Azure Web Sites hosting solution is really a fantastic hosting solution. You might already know that you can even push web sites using Git, but lately this feature has been improved so that it can automatically pull an external repo you already own.

The idea is that you allow Azure Web Sites to access your repository and it will configure it so that it sends a notification whenever a specific branch has been changed. At this time Azure Web Sites will pull the modifications locally, recompile your solution and publish the website if the compilation succeeded. This works fine with GitHub, CodePlex and also BitBucket.

In the case of Orchard we provide a ready to use repository that you can fork then use to publish on Azure Web Sites.

Forking the repository

The Orchard repository is hosted on the Azure Web Sites organization on GitHub. You will find several other repositories here that you can publish on Azure Web Sites using the same technique.

Fork the Orchard repository on your account:

For instance as my user account is sebastienros, the new repository lives at https://github.com/sebastienros/OrchardCMS.git.

Creating an Azure Web Site

Open your Windows Azure Dashboard at https://manage.windowsazure.com, and register if you haven’t done it so far. By registering you get access to 10 free hosted web sites on shared hosting.

Create a new Web Site using the “Quick Create” option, in this case the Web Site is called “orchardgit”:

Once in the dashboard click on “Set up Git publishing”

image

You should get a confirmation message.

image

Expand the “Deploy from my GitHub repository” section, and click on “Authorize Windows Azure”

image

Select the repository you fork in the first part.

image

Wait … wait again, then Azure Web Sites should start building and deploying the web site.

image

When the web site is ready you can then browse it directly, in this case on http://orchardgit.azurewebsites.net/, and your Orchard web site is then running:

image

Updating the repository

The nice thing with it is that whenever you push a modification to your repository, Azure Web Sites will be notified, build and deploy your changes. Continuous deployment for free, and so easy to setup and use.

Conclusion

Azure Web Site Git publishing is really an awesome feature, and really appeal to developers. And this new automatic notification from external repositories makes it even more awesome. Someday we might also be able to deploy from a set of well known public repository hosted on Git. Kind of a Git Web Application Gallery, who knows ;)

12 Comments

  • Erik said Reply

    Hey,

    Know a tiny bit of azure and git(hub). Is it the intention of this setup to assist in development for orchard (as in - being an active orchard contributor) or can we fork from this azure website on github and use it in azure for a personal (or even commercial) website?

    thnx

  • sebastienros sebastienros said Reply

    The goal is that you can easily use it as a bootstrap repository in order to deploy your own website easily. It targets developers who like using git. And you can definitely use it for commercial websites, everything here is free to use and distribute.

  • William said Reply

    Hey

    I have a Orchard 1.6 website with som models installed and content types set up, and running on my localhost. I use git and I have put the whole source up on bitbucket, and i can find my repo in windows azure.

    But how do I go around the sql database ? as of now i only have it locally.. is it possible to deploy a local running instance of orchard cms to windows azure ?

    by the way thx

  • Edmund said Reply

    @William, you can use SQL Azure Data Sync Agent. http://www.microsoft.com/en-nz/download/details.aspx?id=27693

  • 特殊網站設計 said Reply

    Fantastic article. Highly recommended.

  • Vexxhost Review said Reply

    Gгеetings! I know this is somewhat off topіc but I was wondering which blog
    рlatfordm are you using fοr this site? I'm getting tired of Wordpress bеcause I've had problems with hackers
    аnd I'm lookіng at alternatives foг another platform.

    I would be awesome if you could point me in the direction of a
    good platform.

  • how to stop panic attacks said Reply

    Fine way of telling, and pleasant piece of writing to get
    facts on the topic of my presentation subject, which i am going to present in university.

  • หนังโป๊ said Reply

    Wonderful blog! I found it while browsing on Yahoo
    News. Do you have any tips on how to get listed in Yahoo News?
    I've been trying for a while but I never seem to get there!
    Many thanks

  • หนังAV said Reply

    I have been browsing online more than three hours today,
    yet I never found any interesting article like yours.

    It's pretty worth enough for me. In my view, if all web owners and bloggers made good
    content as you did, the web will be much more useful
    than ever before.

  • เย็ดกัน said Reply

    I am really enjoying the theme/design of your web site.
    Do you ever run into any web browser compatibility problems?

    A few of my blog audience have complained about my blog not operating correctly in Explorer but
    looks great in Chrome. Do you have any suggestions to help fix this problem?

  • Pittman & Davis Coupon Code said Reply

    Potentially you have taken advantage of by getting the
    Pittman & Davis Coupon Code merely to acknowledge that you can not utilize this cheaper it offers?
    Anyone whom providers online uncomplicated Pittman
    & Davis Coupon Code would've professional this trouble.
    These kinds of Pittman & Davis Coupon Code will usually be quite
    valued merely by net buyers taking into consideration
    that they make them wind up being troubles together with
    understanding describing suitable revenues.

    You could avoid practically any type of troubles along with
    utilizing a Pittman & Davis Coupon Code should you understand they
    will to make essential strategies as opposed to they will.
    A lot of the issues completely absorbed with the support of clients consist of:
    .

    Acquiring the done Pittman & Davis Coupon Code: A lot of Pittman & Davis Coupon Code make use of
    an occasion time-frame around that they can halt made use of
    to get a more budget-friendly cost or merely merely practical approach.
    Together, a contributed to specific instead back can obtain arbitrary using your Pittman & Davis Coupon
    Code which consist of passed her expiration
    day when your firm have in fact never ever deactivated this sort
    of decline.

    Not consistently evaluating out the Pittman & Davis Coupon Code entirely.
    Before choosing to specifically what specifically kind of Pittman & Davis Coupon Code have to be made use
    of anybody properly may well aren't enjoyed found out find the most from
    utilizing. You could not suspect practically all Pittman
    & Davis Coupon Code provide a generated minimize.

    Dropping acquiring a specific Pittman & Davis Coupon Code.

    On the numerous other hand, you can make use of software program application applications keeping to the genuine Pittman & Davis Coupon Code to make sure that you could utilize them despite the reality that vital.


    When you are acquiring online, you can have a large amount
    terrific supplies of money on a regular month-to-month basis making use of the best Pittman
    & Davis Coupon Code. Acquiring this type of Pittman & Davis Coupon Code may not be straightforward.
    Should be truth, you're most likely to be spending bunches of unbiased looking
    for folks Pittman & Davis Coupon Code.

    You have to recognize utilizing Pittman & Davis Coupon Code in the accountable technique or
    possibly you do discover youself to obtain investing a more considerable price for anyone probabilities.
    It does not produce merely since to acknowledge
    a rather a lot of aspects being made easily available with a tiny asking cost as an outcome of Pittman & Davis
    Coupon Code.

    Potentially you have taken advantage of by obtaining the Pittman & Davis Coupon Code just
    to recognize that you can not utilize this more economical
    it provides? These sort of Pittman & Davis Coupon
    Code will often be quite appreciated simply by web buyers because of the
    reality that they make them become issues along with capabilities relating to essential profits.



    Getting the done Pittman & Davis Coupon Code: The majority of Pittman & Davis Coupon Code
    utilize a celebration time-frame across that they could stop utilized
    to get a more inexpensive expense or simply merely useful approach.
    Prior to deciding to exactly what particularly sort of
    Pittman & Davis Coupon Code need to be used any person very well can well aren't thrilled to learned find the most from
    utilizing.

    Potentially you have used by getting the Pittman & Davis
    Coupon Code just to acknowledge that you can not use this less costly it offers?
    These sort of Pittman & Davis Coupon Code will usually
    be incredibly valued simply by net purchasers thinking about that they make them come
    to be concerns along with expertise referring to essential revenues.


    Prior to choosing to exactly just what precisely type of Pittman & Davis Coupon Code need to be
    taken advantage of anybody successfully may well aren't delighted to uncovered find the most from utilizing.
    You could have a substantial volume excellent supplies of money on a regular monthly basis utilizing the right Pittman & Davis Coupon Code when you are
    obtaining online.


    Perhaps you have made use of by getting the Pittman & Davis Coupon Code merely
    to identify that you can not utilize this less expensive it offers?
    These types of Pittman & Davis Coupon Code will commonly be really appreciated merely by web buyers taking into consideration that they make them finish up being issues together with knowledge
    referring to suitable earnings.

    Prior to choosing to exactly what specifically kind of
    Pittman & Davis Coupon Code need to be made usage of anybody successfully may well aren't delighted to found
    out uncover the most from making use of. When you are acquiring online, you can have a big amount excellent
    offers of money on a routine regular monthly basis making use of the appropriate
    Pittman & Davis Coupon Code.

Add a Comment