-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (39 loc) · 1.37 KB
/
Copy pathMakefile
File metadata and controls
43 lines (39 loc) · 1.37 KB
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
DATABASE_URL = sqlite3://$(abspath ./db.db)
MIGRATION_URL = file://$(abspath ./migrations)
air:
air -c .air.toml
tailwind:
npx tailwindcss -i ./static/css/input.css -o ./static/css/output.css --watch
tailwind.reset:
npx tailwindcss -i ./static/css/input.css -o ./static/css/output.css
templ:
templ generate --watch --proxy="http://localhost:3000" --open-browser=false
migrate.goto:
migrate -database $(DATABASE_URL) -source $(MIGRATION_URL) -verbose goto $(VERSION)
migrate.up:
migrate -database $(DATABASE_URL) -source $(MIGRATION_URL) -verbose up
migrate.down:
migrate -database $(DATABASE_URL) -source $(MIGRATION_URL) -verbose down
migrate.force:
migrate -database $(DATABASE_URL) -source $(MIGRATION_URL) -verbose force $(VERSION)
migrate.version:
migrate -database $(DATABASE_URL) -source $(MIGRATION_URL) version
migrate.reset:
make migrate.down && make migrate.up
jet:
jet -source=sqlite -dsn="./db.db" -schema=dvds -path=./.gen
jet.test:
jet -source=sqlite -dsn="./test.db" -schema=dvds -path=./.gen
tidy:
make migrate.reset
make jet
npx tailwindcss -i ./static/css/input.css -o ./static/css/output.css --minify
templ generate
go mod tidy
docker.build: tidy
docker build --pull -t deep-art:latest .
docker.run:
docker run --env-file .env.prod -p 3000:3000 --name deep-art deep-art:latest
docker.push:
docker tag deep-art:latest $(IMAGE_URL)
docker push $(IMAGE_URL)