Page view counter

How to install a changed module on a live production server

Last post 09-04-2005 12:07 PM by hooligannes97. 12 replies.

Sort Posts:

  • How to install a changed module on a live production server

    07-16-2005, 3:53 PM
    • Loading...
    • alewis25
    • Joined on 03-16-2004, 4:27 PM
    • Posts 394
    • Points 1,945
    I have my module that was fine a couple of weeks ago(DNN version 3.0.12) ,but a requirement changed and now it must be updated.Here is my question,because I create stuff on my dev copy of DNN the dll for DotNetNuke is different from the production.Is this going to cause any type of errors when I deploy that same moduel that has a few changes?If so How do you do it?
  • Re: How to install a changed module on a live production server

    07-16-2005, 8:49 PM
    • Loading...
    • hooligannes97
    • Joined on 09-26-2003, 10:57 AM
    • Bolivia
    • Posts 2,917
    • Points 16,483
    • Moderator
    If you only changed code, just replace the old dll with the new one. Unless you need to reset tables to zero, that's all you need.
    Do you know the truth when you hear it?
  • Re: How to install a changed module on a live production server

    07-16-2005, 10:30 PM
    • Loading...
    • alewis25
    • Joined on 03-16-2004, 4:27 PM
    • Posts 394
    • Points 1,945
    so basically just place the new files where they need to go and that should be fine for my changed module?
  • Re: How to install a changed module on a live production server

    07-17-2005, 12:26 PM
    • Loading...
    • hooligannes97
    • Joined on 09-26-2003, 10:57 AM
    • Bolivia
    • Posts 2,917
    • Points 16,483
    • Moderator

    If you only changed code, yes. If you changed the GUI, both the dll and respective ascx files need to be updated.

    Do you know the truth when you hear it?
  • Re: How to install a changed module on a live production server

    07-17-2005, 1:32 PM
    • Loading...
    • adefwebserver
    • Joined on 06-07-2003, 12:50 PM
    • Los Angeles, CA
    • Posts 1,183
    • Points 5,863

    Is this a module you created or one you bought? if you bought it I would be concerned with the"upgrade path". If you manually upgrade a module and then later install the module the normal way it may not upgrade properly.

    As a module developer I know I am always making an assumption that the person installed the last version the normal way.

    If it is a module you bought I would backup the database and all the files in the dotnetnuke directory. Then I would install the module.


    SilverlightDesktop.net

    A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
  • Re: How to install a changed module on a live production server

    07-17-2005, 1:36 PM
    • Loading...
    • hooligannes97
    • Joined on 09-26-2003, 10:57 AM
    • Bolivia
    • Posts 2,917
    • Points 16,483
    • Moderator
     adefwebserver wrote:

    Is this a module you created or one you bought? if you bought it I would be concerned with the"upgrade path". If you manually upgrade a module and then later install the module the normal way it may not upgrade properly.

    As a module developer I know I am always making an assumption that the person installed the last version the normal way.

    If it is a module you bought I would backup the database and all the files in the dotnetnuke directory. Then I would install the module.



    I think, in the starting post, he implies he's developing the module.
    Do you know the truth when you hear it?
  • Re: How to install a changed module on a live production server

    07-17-2005, 2:10 PM
    • Loading...
    • adefwebserver
    • Joined on 06-07-2003, 12:50 PM
    • Los Angeles, CA
    • Posts 1,183
    • Points 5,863
     hooligannes97 wrote:
    I think, in the starting post, he implies he's developing the module.

    Opps read too fast.

    SilverlightDesktop.net

    A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.
  • Re: How to install a changed module on a live production server

    07-17-2005, 8:15 PM
    • Loading...
    • alewis25
    • Joined on 03-16-2004, 4:27 PM
    • Posts 394
    • Points 1,945
    Yes it is a module I built and I updated both code and GUI
  • Re: How to install a changed module on a live production server

    07-18-2005, 6:38 AM
    • Loading...
    • npeeters
    • Joined on 02-26-2004, 10:48 AM
    • Belgium
    • Posts 303
    • Points 1,525
    The clean way, obviously, is to update the versions in the .DNN file in the PA and upload it. Will take care of all updates of files. You can even include an update SQL script to run.

    The quick and dirty way during development is indeed copying the DLL, ASCX and any resource files (RESX, images, ...) over the original ones.

  • Re: How to install a changed module on a live production server

    09-02-2005, 2:51 PM
    • Loading...
    • k4gdw
    • Joined on 07-26-2005, 2:16 PM
    • Posts 94
    • Points 487
    Is there a way to have one PA that can be used to either upgrade an existing module or install it fresh depending on wether or not the previous version is installed?  Possibly have the newVersion.SqlDataProvider script do a check for the existance of the previous version(s) and if found execute the appropriate SQL so as to avoid blowing away existing data.?
    Bryan
    http://www.greendragonweb.com

    "The Key, the Whole Key and nothing but the Key... So help me Codd"
  • Re: How to install a changed module on a live production server

    09-02-2005, 7:43 PM
    • Loading...
    • DBuckner
    • Joined on 01-23-2003, 11:10 PM
    • Illinois
    • Posts 952
    • Points 4,760
    Yes, Increment version numbers of the provider. e.g. 01.00.00.SqlDataProvider, 01.01.00.SqlDataProvider, 01.02.00.SqlDataProvider, etc. Make sure you also change your .DNN file version info <version>01.00.00</version> etc. I also like to make my assembly versions match, but that's just me. Big Smile [:D]

    Cheers,
    Dave
  • Re: How to install a changed module on a live production server

    09-04-2005, 7:45 AM
    • Loading...
    • k4gdw
    • Joined on 07-26-2005, 2:16 PM
    • Posts 94
    • Points 487
    Sorry it took me so long to get back, life got in the way.  Anyways, so it automagically knows to run previous *.SqlDataProvider files if, and only if, it's a new install.  I just want to be sure so here's a hypothetical, and probably common, scenario.  Module version 3.00.00 has just been released.  It's PA includes *.SqlDataProvider files from version 1.00.00 with each successive file containing only the sql needed, if any, to upgrade from the previous version.  A site that has been running version 2.00.05 downloads and installs the new version.  Would I be correct to assume that DNN will start with the next *.SqlDataProvider file, say 2.00.06.SqlDataProvider and ignore the earlier ones?  I'm being so cautious because we're evaluating using DNN at my job and will likely have some custom modules where it would be very bad to lose data.  We keep off site backups, but still it's best to do whatever we can to avoid having to use them.
    Bryan
    http://www.greendragonweb.com

    "The Key, the Whole Key and nothing but the Key... So help me Codd"
  • Re: How to install a changed module on a live production server

    09-04-2005, 12:07 PM
    • Loading...
    • hooligannes97
    • Joined on 09-26-2003, 10:57 AM
    • Bolivia
    • Posts 2,917
    • Points 16,483
    • Moderator
    When there's no installed version of a module. The PA installer will read each consecutive version of the SqlDataProvider scripts from the lower version number until it reaches the highest version number. If there is an installed version, the installer will only run higher versions. The current version is saved in the DB and it is compared with the one indicated in the DNN manifest file. The SqlDataProvider script files must be included in this manifest as well.
    Do you know the truth when you hear it?
Page 1 of 1 (13 items)