ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    NodeBB Upgrade Guide

    Scheduled Pinned Locked Moved IT Discussion
    nodebb
    5 Posts 3 Posters 7.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • steveS
      steve
      last edited by scottalanmiller

      As GroveSocial does this for many more sites than a normal company, we took the five minutes to assemble and test a one liner for upgrading NodeBB. Wanted to post here for anyone searching.

      Obviously take a database backup first (depends on what database you use) and change the exported version as appropriate.

      git fetch; git pull; ./nodebb stop; ./nodebb upgrade; npm i; ./nodebb start; ./nodebb log
      
      1 Reply Last reply Reply Quote 3
      • scottalanmillerS
        scottalanmiller
        last edited by

        With the update to 0.5.1 we noticed that there was a continuous problem with the GIT repo and you have to issue this command to fix it:

        git reset --hard origin/v0.5.x
        
        1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller
          last edited by

          If you want to do the upgrade but not have the start and stop portions in the script, here you go...

          export version=v0.5.x; git fetch && git checkout $version && git reset --hard origin/v0.5.x && git pull && ./nodebb upgrade
          
          1 Reply Last reply Reply Quote 1
          • scottalanmillerS
            scottalanmiller
            last edited by

            Here is how it used to be...

                export version=v0.5.x; ./nodebb stop; git fetch; git checkout $version; git merge origin; git reset --hard origin/master; git pull; ./nodebb upgrade; ./nodebb start; ./nodebb log
            
            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @scottalanmiller
              last edited by

              @scottalanmiller said in NodeBB Upgrade Guide:

              Here is how it used to be...

              You should make a note in that first post that it is updated or something.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post