Copied to clipboard

Flag this post as spam?

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


  • Stig Rune Frydenlund 6 posts 76 karma points
    Jun 30, 2016 @ 11:24
    Stig Rune Frydenlund
    0

    Umbraco Development Environment

    Hi..

    I am trying to figure out the better way of working with Umbraco, and are quite new to Umbraco. I am in the process of re-writing a website and porting an old Umbraco version (4.7) based on User controls to the latest version with partial views, making the process a bit difficult as I have to both learn the old and new way of doing things.

    I have made a backup of the existing production database, and attached this to a brand new Umbraco installation that has upgraded it. I am now in the painful process of rewriting all the templates and usercontrols, creating partial views and so on. I have worked locally on my own machine so far, but I have a need to publish the site to a development environment whilst control on the files.

    For the «old» Umbraco web site there were no VS solution for the website. It just resided on a web server and was taken backup of, and code for usercontrols was kept in external libraries that was referenced in the web.config and in Umbraco, and updated whenever needed. I would like to use the Visual Studio solution that I set up for the site as a master to both edit and debug the SurfaceControllers, Views and other content and of course also have Source Control on all the code.

    The challenge is of course when creating new templates and such in umbraco, the files is created on the server where umbraco is running. If this is done on the development/test server instead of my local development machine, i do not get the content into the visual studio solution and will have to add this manually.

    Is there a good or recommended way of keeping things in sync between environments? (also considering production environment).

    I have read a little about uSync and are wondering if this is the way to go.

    I would love to hear how you have set up your development environment for Umbraco or if you have any recomendations, and also on how you deploy changes to the production environment.

  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Jun 30, 2016 @ 12:50
    Paul Seal
    0

    Hi Stig This is how I set up umbraco to run in Visual Studio dev environment

    http://www.codeshare.co.uk/blog/how-to-install-umbraco-using-visual-studio-nuget-iis-and-sql-server/

    Paul

  • Stig Rune Frydenlund 6 posts 76 karma points
    Jul 06, 2016 @ 07:48
    Stig Rune Frydenlund
    0

    Thanks Paul.

    I have done it pretty much the same way. A very good step-by-step tutorial. Wish I had seen this a bit earlier :)

    How do you fare when moving to production environment regarding syncing of structural changes done in Umbraco (e.g. adding new Partial Views and so on, and other structural changes that are registered in the database)?

    That is my biggest concern at the moment.. In addition to the old legacy database that needs to be merged somehow, but that is my concern :)

  • Paul Seal 524 posts 2890 karma points MVP 7x c-trib
    Jul 12, 2016 @ 10:57
    Paul Seal
    0

    I deploy as normal from Visual Studio using the Publish to File System option. That takes care of the Code, Views, scripts, css etc.

    When it comes to Templates, if I don't have many to create in the live environment, after I deploy my code, I add the new template manually.

    If I am adding multiple templates, document types and data types I usually create a package for it and then install it in the production site.

    This is in the developer tab > packages > local packages

  • Domenic 42 posts 128 karma points
    Jun 30, 2016 @ 13:59
    Domenic
    0

    Thanks for posting this!

    Dom

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies