Answer the question
In order to leave comments, you need to log in
How to package Postgress into a binary?
I need to run my node.js + postgress application in the customer's infrastructure, it's easy to pack node.js into a binary, but what to do with the database in this case?
Answer the question
In order to leave comments, you need to log in
change postgres to sqlite
sqlite is a database inside a file, does not require administration and installation, very functional and fast enough
upd. on the topic, I had a case, quite ready for production, why not, I wrapped the finished installation of all the necessary utilities into a virtual machine image and transferred it
You can use Docker or Docker-compose
I would just include postgres in the requirement set
Create a dump and download it when you deploy. And in general, single installations are a bad (expensive) practice, wrapped in an installer
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question