#!/bin/bash # Create the database for the worker using PostgreSQL first: # sudo su postgres # createdb -p 5433 gargantext_pgmq # psql -p 5433 -c "alter database \"gargantext_pgmq\" owner to \"gargantua\"" # Then launch the service nix-shell --run "cabal v2-run gargantext -- worker run --name default"