summaryrefslogtreecommitdiff
path: root/Justfile
blob: 5ad58d884af159c2c86d0bfd3d91077940d05d4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
_default:
    just --list

build:
    cargo build --release --target-dir target/

dev:
    demon run tinyauth ./tinyauth.sh
    cd frontend && demon run dev -- npm run dev

stop:
    demon stop tinyauth
    demon stop dev

logs:
    demon cat tinyauth | tail -n 100
    demon cat dev | tail -n 100

tail:
    demon tail -f dev

deploy-frontend: build
    #!/usr/bin/env bash
    source prod.env
    cd frontend
    npm run build
    npm run start

deploy-tinyauth:
    #!/usr/bin/env bash
    source prod.env
    podman run --rm -i \
        --name tinyauth \
        --network host \
        -e PORT=3001 \
        -e SECRET="$TINYAUTH_SECRET" \
        -e APP_URL="$TINYAUTH_APP_URL" \
        -e USERS="$TINYAUTH_USERS" \
        ghcr.io/steveiliop56/tinyauth:v3