Build in advance/single executable to deploy
-
I am new to NodeBB and have only got it up and running on a first-year free AWS EC2 instance, which offers a very limited 1GB memory.
And I met my first major problem before I even invited my friends to try it: after installing a plugin and clicking the rebuild and restart button, the system became so dead that even SSH turned unusable. I have to reboot the system.
I wonder if I can build it locally on my laptop and then offload it to the remote server since NodeBB doesn't seem to consume as much resource running as when it is building. Build in advance and preferably, bundled into a single executable. Is it possible? How hard could it be if there's no ready to use tools for this kind of job?
-
@Thom I'd recommend trying building while stopped first using the CLI
./nodebb stop ./nodebb build ./nodebb start
You could even try
./nodebb build --series
and see if that works -
-
@Thom 1GB happens to be the lower limit of what NodeBB needs to build. It's kind of unfortunate since I'd prefer that it use less memory, but this is what webpack needs (at least with our javascript payload) to bundle everything.
Day-to-day running, NodeBB consumes far less memory.
Swapfile is a good solution