How to auto start nodebb on ubuntu server reboot
-
Running NodeBB - NodeBB Documentation
Documentation portal for NodeBB Forum Software
(docs.nodebb.org)
-
@duke @duke said in How to auto start nodebb on ubuntu server reboot:
Running NodeBB - NodeBB Documentation
Documentation portal for NodeBB Forum Software
(docs.nodebb.org)
ok but the issue is this... I'm on Windows. Using the bash integrated shell. I got nodebb running on another drive then windows self.
I use wamp server and its in the WWW folder in a nodebb folder...
J:\wamp64\www\NodeBB
how am I supposed to define the path when the linux kernel is hosted here=
C:\Users\gamer\AppData\Local\Lxss\rootfs
then how do I define this=:
WorkingDirectory=/path/to/nodebb
ExecStart=/usr/bin/env node loader.js --no-silent --no-daemon -
@maxpen Have you seen this? https://docs.nodebb.org/installing/os/windows8/
Sorry but I dont use windows for NodeBB
for
WorkingDirectory=C:\Users\gamer\AppData\Local\Lxss\rootfs
try
WorkingDirectory=C:\\Users\\gamer\\AppData\\Local\\Lxss\\rootfs
Have a read of this also
https://nodejs.org/api/path.html -
I use wamp server and its in the WWW folder in a nodebb folder...
WAMP is Apache / PHP / MySQL. NodeBB is none of those things, and doesn't play well with any of those things.
Newer releases of Ubuntu/CentOS/Debian/OpenSuse use systemd
The documentation clearly states that this applies for linux systems, not Windows.
-
@duke the windows guide is outdated.
-
Or you can use PM2
https://www.npmjs.com/package/pm2How To Use PM2 to Setup a Node.js Production Environment On An Ubuntu VPS | DigitalOcean
Use these instructions to setup an Ubuntu server to run Node.js applications, including apps based on Express, Geddy, or Sails. This will help you avoid some…
(www.digitalocean.com)
-
Doesn't putting the directory in www mean your db keys are open to the internet?
-
What about using AMPPS? It's an alternative to WAMP made by the Softaculous company.
I know they have support for MongoDB and I believe it supports Node.js as well. Running that instead of WAMP could be a possible solution?
I use AMPPS on my Windows 7 machine, but I have yet to experiment with any Node.js on it so I'm not too sure if this would be a solution to your problem. Just a suggestion to look into though!
-
AMP literally stands for Apache MySQL PHP. You don't need MySQL and PHP for NodeBB, so these "AMP" server packages are useless.
-
In nodebb's case it will just need the A (or E... which will be nginx. Don't ask me why the E stands for nginx, as that is how they named the stack. Maybe because it is pronounced engine-x) and the M... for mongodb