-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
91 lines (74 loc) · 1.75 KB
/
justfile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
set shell := ["bash", "-uc"]
set export
set dotenv-load
default:
@just --choose --justfile {{justfile()}}
help:
#!/usr/bin/env bash
set -euo pipefail
echo DEFAULT:
just --list
zoom *args:
#!/usr/bin/env bash
set -euo pipefail
source "$HOME/.rye/env"
rye run python painlezz-spiderz/painlezz_spiderz/zoom_zoom.py {{args}}
be:
#!/usr/bin/env bash
set -euo pipefail
source "$HOME/.rye/env"
rye run uvicorn pysilo_backend.main:create_app --reload --factory --port 8080
be-prod:
#!/usr/bin/env bash
set -euo pipefail
gunicorn pysilo_backend.main:create_app -w 4 -k uvicorn.workers.UvicornWorker --factory --port 8080
fe:
#!/usr/bin/env bash
set -euo pipefail
source "$HOME/.rye/env"
cd ./site
pnpm run dev
services:
#!/usr/bin/env bash
set -euo pipefail
podman-compose down
podman-compose up --build postgres redis
gen-orval:
#!/usr/bin/env bash
set -euo pipefail
source "$HOME/.rye/env"
cd ./site
pnpm run orval
spider:
#!/usr/bin/env bash
set -euo pipefail
cd src/py_spider/py_spider/spiders
scrapy crawl pypi_spider
db-gen message:
#!/usr/bin/env bash
set -euo pipefail
cd ./pysilo-migrations/pysilo_migrations
rye run alembic revision --autogenerate -m "{{message}}"
db-bump:
#!/usr/bin/env bash
set -euo pipefail
cd ./pysilo-migrations/pysilo_migrations
rye run alembic upgrade head
ruzty-ai-web:
#!/usr/bin/env bash
set -euo pipefail
trunk serve --config ./ruzty-ai/Trunk.toml
ruzty-ai-native:
#!/usr/bin/env bash
set -euo pipefail
cargo run -p ruzty-ai
pysilo-rs:
#!/usr/bin/env bash
set -euo pipefail
cd "pysilo-rs/pysilo-app"
dx serve --platform web --skip-assets --hot-reload=true --open
prompt-rs:
#!/usr/bin/env bash
set -euo pipefail
cd "prompt-rs"
dx serve