nix: Fix creation of 2 file The output was redirected to a file called 2 when validating if the PG server was already running. This typo was fixed, also fixing which source of text to stream to /dev/null.

zj
Sep 17, 2021, 9:00 AM
HDUCIECSLA2MMCD25NDJKD3MBXF7OC3VTSZ37VTVK75FEL2LVRLQC

Dependencies

  • [2] BAWJ3BJ5 nix: Do not start PG if running In a nix hook the PG server is started when `nix-shell` is invoked. This created extra output when nix-shell was invoked on an extra shell as it tried to start a new PG server again while it was already running. This change updates the behaviour to not do this, and verify with pg_ctl if PG is already running.
  • [3] FS2NWBVN pijul: Start of push/pull work This change includes one API endpoint, .pijul. It allows for getting a channels remote ID. A lot of plumbing around repositories is added too, from init to opening pristine and actions like it.
  • [4] EIIUUAKG nix: Install and initialize a Postgres DB For a persistance layer, this change introduces postgresql as dependency. The daemon is started when `nix-shell` is invoked. `pg_ctl stop` is not invoked, and this has to be done by a developer. Data is persisted in a tmp directory, which is added to the ignore file.
  • [*] W3M3C7CC Initial commit This change includes a very small hello world application server written in Rust using Rocket.rs. Managing dependencies is done with Nix as that works well between Linux and Mac for me.

Change contents

  • replacement in shell.nix at line 45
    [2.1][2.1:34]()
    if ! pg_ctl status &>2; then
    [2.1]
    [2.34]
    if ! pg_ctl status 1>/dev/null; then