Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kamil 3 posts 24 karma points
    Apr 20, 2014 @ 00:22
    Kamil
    0

    Umbraco 7.1.1 on Azure Websites via GitHub

    Hi folks!

    I decided to ask for help after a week or two of unsuccessful research. There are plenty of old blog posts (hey ho azure accelerator), not necessarily helpful and/or explained articles, tons of ways to accomplish only part of the job, etc. Yes, I have even watched three flavours of Azure, still no idea where to start. Apparently my front-end dev brain isn't skilled enough. Yet.

    What is the best way to run latest Umbraco (7.1.1 as of now) on Azure Websites using Git version control and Git deployment?

    1. VS and NuGet?

    New project in VS 2013, .NET 4.5.1, NuGet, git ignore (ignore & restore NuGet packages), git init and finally F5. Great, I can run the project locally, new shiny 7.1 installation wizard. But hold on, I don't necessarily want to run it on my machine...

    Azure management portal, new Azure website + SQL Azure (Standard plan, but it doesn't matter). Back to VS, right click on the project, Publish, login to Azure subscription, select newly created Website stack, test connection and Publish. Great, installation wizard live on .azurewebsites.net, connection strings, voila!

    But hold on again. How do I pull these changes (web.config, etc.) back to my local Git? How do I set the Git deployment later? I think that on my next git push, I will lose everything and see the wizard again, am I right?

    2. Azure app gallery version (which has been updated today to 7.1.1)?

    Is there any difference between the normal version? Like optimisations for Azure websites, SQL Azure, anything? It was a long while before the 6.1.6 disappeared, straight to 7.1.1 just today. How often is it going to be updated then? Is it a reliable choice for a new installation?

    I can easily create new website/sql stack, install Umbraco from gallery, it takes a minute to the installation wizard. Brilliant! But hey, again, how do I pull everything to Git(Hub) and VS after the successful installation to play around? And which folders should I ignore on Git repo without losing anything?

    3. FTP?

    I did that before, but I decided to drop this idea. I downloaded the 7.0.4 as a zip package, edited the Web.config manually (only for an azure sql connection string), sent all the files through FTP, completed installation and it worked. Somehow. But then I had to sync FTP at work and home every day. Even worse, Azure decided to be clever and after a few days of pretty successful work, it was throwing a 500 error at completely random times when I visited the site, but only for a couple of minutes. No changes applied, I didn't even had a chance to find out what was wrong.

    My goal

    It is supposed to be a fairly simple marketing website. Without scaling, tons of instances, VMs, complicated scenarios, etc.

    I have a precisely hand written html/css/js website, using sublime, git and grunt.

    All I wanted to achieve is to put it on Azure websites, set up automatic git deployment, make a bunch of Razor Views, probably one Surface Controller for a contact form and move all static content (text/images) to CMS side/back office properties. For a couple of other editors in future, since Umbraco is easy to use from a simple CMS user perspective.

    The other thing that I would like to do, is to update a CSHTML, JS or perhaps a CSS file via Sublime, spin up a grunt task, commit and push to GitHub. Just because Visual Studio sometimes seems too overloaded for a simple changes.

    I think that's about it. I will be grateful for any help, since it is pretty much overwhelming me right now. Thanks!

    Kind regards, Kamil

  • criticalmaas 10 posts 28 karma points
    May 21, 2014 @ 21:52
    criticalmaas
    0

    Hi Kamil, best as I can tell, as I am going through the same research is that you should avoid making any file changes via the online backend when using a git deploy scenario. I could be wrong though as I am still going through my own research on the topic but so far that is my findings.

     

    regards,

    ryan

Please Sign in or register to post replies

Write your reply to:

Draft