E
E
enerGOww2021-04-02 16:46:14
PostgreSQL
enerGOww, 2021-04-02 16:46:14

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

4 answer(s)
R
rPman, 2021-04-02
@enerGOww

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

D
Dmitry, 2021-04-02
@dmtrrr

Customer admins must deploy postgres.

V
Vasily Bannikov, 2021-04-02
@vabka

You can use Docker or Docker-compose
I would just include postgres in the requirement set

V
Vladimir Korotenko, 2021-04-02
@firedragon

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 question

Ask a Question

731 491 924 answers to any question