• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Upgrade NodeBB when the code is in another repository

Scheduled Pinned Locked Moved Technical Support
7 Posts 2 Posters 638 Views
    • 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.
  • G Offline
    G Offline
    Geku
    wrote on last edited by
    #1

    Hello,

    I'm trying to upgrade nodebb but the code is in my own git repository, so no way on doing a checkout v1.x.x.

    Any clue on how to achive an upgrade in my situation?

    Thank you very much!

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #2

    Why is your code is a different repository?

    1 Reply Last reply
    0
  • G Offline
    G Offline
    Geku
    wrote on last edited by
    #3

    I have no idea.
    This project is for a client and he just gave me a private repository (it seems like a fork) of NodeBB and ask me to upgrade it / do few small changes.
    He modified a little the code and he's aware that he will lose those changes after the upgrade.

    Is it possible to upgrade it and keep it on that repo or should I start from scratch?

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #4

    Sure it's possible, the easiest way is probably:

    1. Clone the private repo locally
    2. Add a new remote called source pointing to NodeBB's repo
    3. Checkout the source branch you want
    4. Push that branch to the private repo git push -uf origin/[branch]
    1 Reply Last reply
    0
  • G Offline
    G Offline
    Geku
    wrote on last edited by
    #5

    Awesome!!! Gonna try it asap and tell you the results 🙂

    Thank you very much!

    1 Reply Last reply
    0
  • G Offline
    G Offline
    Geku
    wrote on last edited by
    #6

    I've tried, but I'm stuck after the 4th step.
    Is like the 4th step is just creating a new branch with remote="origin" but without the changes of the branch i've pushed from the remote called "source".

    The 4th step is supposed to push the source branch to the origin remote, right?

    1 Reply Last reply
    0
  • G Offline
    G Offline
    Geku
    wrote on last edited by
    #7

    I've finally managed to do it going to a origin branch and doing a pull of the source branch "v1.8.x". I've executed the nodebb upgrade script and it worked fine, but now there are some npm libraries that are missing, so i'll need to do some tweaks there.

    Thanks!

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development