I have no idea what I am doing
As a newbie with zero development access, I followed the dummies guide below
It was a miracle but I got the nodebb up and running successfully (I am good at following instructions).
Here are some issues I am facing. Hope somebody can help.
When I close my putty window, the server stops running and the forum is no longer accessible.
How do I start the server and exit the terminal window?
I know this sounds like a dumb questions but please bear with me.
Basic linux method would be to put & at the end of the command you use to start it, like;
./nodebb start &
More information on that method can be found here http://www.cyberciti.biz/faq/linux-command-line-run-in-background/
I currently use upstart to run it in background and have it auto startup on box restarting. My nodebb.conf script located in /etc/init looks like this;
Blatantly stolen from here https://www.exratione.com/2013/02/nodejs-and-forever-as-a-service-simple-upstart-and-init-scripts-for-ubuntu/ .
This method allows me to type
stop nodebbfor quick restarting.
There are other ways to do this, but I found this to be my favorite method.
You could also install forever
npm install -g forever cd /path/to/nodebb NODE_ENV=development forever start app.js
(Replace NODE_ENV=development with NODE_ENV=production if you want to deploy it to production environment)
Thanks, I am running forever now. Seems to work.