How to start a nodebb forum in production?

  • Hello. I have never hosted a forum. I'm confused about what the best way to start is.
    I would like to start on DigitalOcean. I'll start by using the last release of nodebb with mongodb database. What do you think is the best option?

    1. $ 5 Droplet where I install server + database. I will increase resources when needed.
    2. one $ 5 droplet for the database and one for the server. I will increase resources when needed.

    I also need to install nginx? in localhost I never used it. My idea is to start in the most minimal way possible. any advice?

    I see also droplets can be resized in resources or i can add more of them. What is the best solution?

  • Anime Lovers

    It's been a while since I hosted nodebb. I haven't had much time to work on websites as of late. I used to host (about a year ago) NodeBB and the DB on a $5 digital ocean droplet with no problems. It wasn't very active, max of 3-5 people a day. But it felt like it could have easily handled way more without issue.

  • Community Rep

    It would be easiest (and cheapest) to host both on the same machine for starting out.

  • try CWP webpanel they have all what you need including email server

  • Thanks guys. i think i simply start with a 5$ droplet and i increase resource when needed. Then i will see in future for horizontal scaling.

    I just dont understand why i cant install mongodb 4.X on the droplet. I follow the official nodebb docs and i've tried also mongodb docs but i always receive this error

    E: Unable to locate package mongodb-org

  • Global Moderator Plugin & Theme Dev

    Are there any errors while following the mongo install docs? They should work fine.

  • Seems all works fine without errors until i have to install mongodb-org. i followed nodebb docs and also official mongodb docs. it dont work on digital ocean. in local host it works fine.


    maybe the error is after

    sudo apt-get update


  • solutions?

  • GNU/Linux

    For my case, I use a cheap dedicated server on wich I installed docker, and I run nodebb container + redis container.
    It works well, and it's the easiest way I've found to run my forum in prod. Docker is also good for testing clone instances with last updates, plugins compatibility, etc, when I consider to upgrade.

  • For me is good without docker. but i really dont understand why mongodb-org dont work. if i install mongodb all work fine but for the version 4.x i have to use mongodb-org

  • Global Moderator Plugin & Theme Dev

    @NoduleJS I don't know why you're running into that issue. I suggest asking for help elsewhere, places more focused on mongodb.

  • @NoduleJS check out the output from apt-get update, the repo you are setting up is not being picked up.
    The issue is on the command you are using... after the > you shouldn't be calling tee.

    You should be doing it like this:

    sudo echo "THE LINE" > /etc/apt/sources.list.d/mongodb.list

  • @fgallese yes thank you. i saw it yesterday. I lost a lot of time for that little detail. Digital ocean console uses another character set

  • This post is deleted!

Suggested Topics

| | |

© 2014 – 2022 NodeBB, Inc. — Made in Canada.