[Best practices?] If I'm running a droplet and want to use multiple urls for different node apps...?
I setup nginx and went through this:
But I messed around with the config.json file not realizing any better, but it kind of falls back on the port so I can still see my forum and but broke it and now it's having this error:
nevermind, see below
I have simple static files here showing up: http://www.violetcomics.com/
Note: I can restore a snapshot back to before installing nginx and messing up everything but is it possible to undo-EDIT - Nevermind: Snapshotted back.
Edit2: Installing nginx again...
Edit3: Re-installed nginx with one server block enabled (non-NodeBB-related), seen here: http://www.violetcomics.com/
You have had default /mynodebb/server.js and it should be /mynodebb/app.js. Error has gone so I guess you're up and running.
Just remember to restart nginx after changing config files.
Are you referring to "forever start --spinSleepTime 10000 main.js"? I had replaced "main" with "app" before restoring.
I restarted nginx, and do so whenever I try to make changes, but it's not working... Is something like this valid? I made sure the file in sites-available and sites-enabled are linked.
Edit: Error came back. @_@ I'll get back to it later.