Copied to clipboard

Flag this post as spam?

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


  • Bilal Haidar 144 posts 410 karma points
    Sep 13, 2016 @ 08:15
    Bilal Haidar
    0

    How to move packages from Dev to Prod

    Hi,

    I am installing the packages locally. Is it enough to just publish the application and all the package files will be moved to Prod? Or better, install packages in both environments?

    In some cases, some packages might have their own DB tables, so just publishing the files won't help much, right?

    Thanks

  • Kevin Jump 2348 posts 14896 karma points MVP 8x c-trib
    Sep 13, 2016 @ 10:04
    Kevin Jump
    100

    Hi Bilal

    I would say the best thing to try is NuGet everything you can - more and more umbraco packages are available as nuget packages and this means all the required dll's and files get included in the project so when you deploy / publish everything will get copied over to the other environment.

    however if you can't get nuget version of a package, then you either:

    • have to install it at both ends.
    • keep track of what it changes and include those files. **
    • create your own local nuget packages that you can use to deploy.

    * *you're right that some some packages - do things like custom DB settings as part of their post install so the copy / own nuget method might miss things.

    Generally you can tell if a package does anything clever by looking in the package zip file at the packages.xml file - This is the config file that tells umbraco how to install a package. Mostly this will be copying files - and these packages can usually just have those files copied between installations.

    but you will be able to see if a package creates doctypes or datatpes, and if their is anything in the packageActions section, then it might be doing some custom db stuff as well.

    Those packages will be best installed at both ends.

    I tried to create a usync.packageEdition a while back but the custom db stuff scuppered it at the time :(

  • Bilal Haidar 144 posts 410 karma points
    Sep 13, 2016 @ 10:08
    Bilal Haidar
    0

    Wow Kevin, you are making it smooth and easy for me today :-)

    This is really helpful! I am finding my way at Umbraco and hoping soon I will be able to develop and do advanced customizations!

    Thanks /Bilal

  • 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