~sbaildon/yemma

yemma/Justfile -rw-r--r-- 332 bytes
38e5b1faSean Baildon user_settings_url with conn 21 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set dotenv-load := true

test:
    mix test

setup-test:
    mix ecto.reset

postgres:
    #!/usr/bin/env sh
    if [ ! -f ${PGDATA}/postgresql.conf ]; then
    	mkdir -p ${PGDATA}
    	initdb --auth=trust
    	pg_ctl start
    	createuser postgres --createdb -h localhost
    	pg_ctl stop
    fi

    nix run .#postgres -- -p 5433