-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
74 lines (50 loc) · 1.5 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
set dotenv-load
dev:
process-compose -p 8088 up
dev-js:
cd modules/frontend; npm run dev
dev-scala-js:
sbt --client ~frontend/fastLinkJS
dev-scala:
sbt --client ~backend/reStart http-server
build-scala-js:
sbt --client publicProd
build-js:
cd modules/frontend; npm run build
install:
cd modules/frontend; npm install
serve:
cd modules/frontend/dist; caddy file-server --listen :8001
build-backend:
sbt --client backend/dockerBuildAndPush
deploy-backend:
cd modules/backend; flyctl deploy
migrate:
sbt --client backend/run migrate-db
smoke:
sbt --client backend/run smoke-run
smoke-with-agent:
rm -f modules/backend/rallyeye.db
sbt --client backend/nativeImageRunAgent \" smoke-run\"
native-image:
sbt --client backend/nativeImage
run-native-image:
modules/backend/target/native-image/backend http-server
rm-db:
rm modules/backend/rallyeye.db
test:
sbt --client test
test-integration:
sbt --client Integration/test
docker-login:
cd modules/backend; fly auth token | docker login registry.fly.io --username=x --password-stdin
clone region:
cd modules/backend; fly machine clone --select --region {{region}}
ssh:
cd modules/backend; fly ssh console --select
litefs-export:
cd modules/backend; fly litefs-cloud export --cluster rallyeye --database rallyeye.db --output ./rallyeye.db.$(date "+%Y-%m-%d")
telemetry:
cd telemetry; docker-compose up
delete-rally kind rally:
http --auth admin:$ADMIN_PASS POST 'https://rallyeye-data.fly.dev/admin/delete/{{kind}}/{{rally}}'