How can i migrate??

Unsolved Technical Support
  • #1

    How to migrate nodeBB?
    currently, it's on Heroku. migrating to the Digital Ocean.

  • Community Rep

    @Varun-Ganesh-D Do not know jack about Heroku but presuming you have access to a shell account:

    1. Prep everything on your DO droplet, i.e. install nodejs, nginx, mongo, etc. Use the SAME versions as the Heroku stuff.
    2. Shut down all the moving parts, e.g. nginx, nodebb, mongodb/redis on the Heroku instance.
    3. Rsync your DO droplet w/the appropriate dirs on your Heroku instance, e.g. nodebb home, mongo/redis data dirs and /etc/whatever.conf.
    4. Start up mongo/redis. Watch logs for any errors.
    5. Start up nodebb. Watch logs for any errors.
    6. Confirm you are able to access nodebb on e.g. port 4567.
    7. Restart proxy.

    Like most tech stuff, there's more than one way to do it. I presented you with one. Other's mileage may vary.

    Note: I have omitted propagating updated DNS pointers but you should also ensure forward and reverse dns records are in order. Once done, you will also need to generate new TLS certificates for the DO droplet. Presuming you have access to auth DNS records:

    1. Set TTL on existing Heroku stuff to something like 1hr a day or two prior to migrating.
    2. After you've shut all the Heroku stuff down - update those DNS enteries with the new data.
    3. Let that roll for a day or two to confirm all is well.
    4. If all is not well, point auth DNS back to the Heroku stuff and bring it back online.
    5. Diagnose/troubleshoot any DO issues.
    6. Wash, rinse, repeat the above.
    7. Once confirm all is indeed groovy, change those DNS TTL's to something more appropriate, e.g. 24-48hrs, so the rest of the world's resolvers are not hammering your auth DNS boxes.

    Good luck and have fun! o/

  • #3

    It's Very Complex.
    I installed Fresh. Lost everything.

Suggested Topics

  • 0 Votes
    6 Posts

  • 0 Votes
    4 Posts

  • can't send emails

    Technical Support
    0 Votes
    7 Posts

  • 0 Votes
    14 Posts

  • 0 Votes
    12 Posts

| | | |