I finally found the time to finish the NodeBB port. Now, before submitting it to the official port tree, I am testing it (install, upgrade, etc.). If you feel like you want to test it too, here are the instructions.
Installing NodeBB
In order to install NodeBB using pkg(8)
, you need to add the nodebb repository (my repository, not an official NodeBB repository as shown by the url). For this, create a nodebb.conf
file in /usr/local/etc/pkg/repos/
(create this folder if it does not exist) with the following content :
nodebb: {
url: "pkg+https://pkg.hukadan.org/${ABI}",
mirror_type: "srv",
signature_type : "PUBKEY",
pubkey: "/usr/local/etc/ssl/certs/pkg.cert",
enabled: yes
}
FreeBSD: {
enabled: yes
}
Next you need to copy the public key of the nodebb repository into /usr/local/etc/ssl/certs/
(create this folder if it does not exist). You can find the public key here. I will try to rebuild this repo once or twice a week.
Then, update the repository database and install NodeBB :
% pkg update
% pkg install www/nodebb-devel
It will not install any database so you will have to choose yours, for instance redis
with pkg install databases/redis
.
For the ones who want to use the ports(7)
instead of pkg(8)
, here we go.
Launch NodeBB
First, launch your database with service redis onestart
. Once it is done, you can launch NodeBB using the command service nodebb onestart
. You can make it start at boot like any other services by adding the following lines in the /etc/rc.conf
:
redis_enable=YES
nodebb_enable=YES
The ordering does not matter. These two lines will make sure that both services are started at boot. Once these lines added use start
instead of onestart
.
Misc
All the commands you use with the nodebb $arguments
are available without modifications using service nodebb $arguments
. They work in exactly the same way except for service nodebb upgrade
that only update database schema.
NodeBB will be installed in the /usr/local/www/nodebb
folder and will run under the unprivileged nodebb
user.
For the one that test it, report any problem (or propose improvements) with the package (not NodeBB itself) here :
https://github.com/Hukadan/nodebb-devel-port/issues
Thank you for your participation.