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?- $ 5 Droplet where I install server + database. I will increase resources when needed.
- 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?
-
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.
-
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
-
Are there any errors while following the mongo install docs? They should work fine.
-
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. -
@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