All Posts

Packaging Node.js Apps for Easy Deployment

After 5 years in Node land, there’s nothing sadder than taking hours to deploy your new app. It was a breeze to develop and run locally. Throwing it on staging or production can become a beast of a task if you aren’t careful. There are so many guides with complicated deploy and server setup patterns, because Node and npm, plus build tools need to be installed on theserver.

Easy deploys and easy rollbacks are my goal here. I usually just don’t want to hassle with a bunch of infrastructure. Docker is probably a nice tool if you have 50 servers, but that isn’t the case for most ofus.

What I am notusing

nexe

wonderful tool for producing small-ish Nodeexecutables

project mainentance has become questionable and it breaks alot

native modules don’t work, despite what they may hintat

jxcore

compile your node app into abinary

more of a node.js competitor than node.jstool

for me, broke a lot and feels early days ( for example, at the time of writing, their website is unreachable, which is not asurprise)