How to auto start nodebb on ubuntu server reboot
-
-
@duke @duke said in How to auto start nodebb on ubuntu server reboot:
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.
-
-
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