-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (36 loc) · 747 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (36 loc) · 747 Bytes
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
###########################
# Docker #
###########################
start:
docker compose up --remove-orphans -d;
up: start
stop:
docker compose stop;
down:
docker compose down;
restart:
docker compose restart;
bash:
docker compose exec app /bin/sh;
###########################
# Local development #
###########################
init: init-db init-rr
# Install dolt database
init-db:
if [ ! -f "dolt" ]; then \
vendor/bin/dload get dolt;\
chmod +x dolt;\
fi
if [ ! -d ".db" ]; then \
mkdir -p .db; \
chmod 0777 -R .db; \
./dolt --data-dir=.db sql -q "create database llm;"; \
fi
# Install RoadRunner
init-rr:
if [ ! -f "rr" ]; then \
vendor/bin/rr get;\
fi
clear-cache:
rm -rf runtime/cache;