-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
25 lines (20 loc) · 797 Bytes
/
Makefile
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
db:
@# it runs the postgres database container
@docker compose up
deploy:
@# it deploys the app to shuttle without commiting the changes, but with the uncommited changes in the deployment
@# NOTE: it needs a remote database, please change the DATABASE_URL in the .env file, and therefore local database is not needed
@cargo shuttle deploy --ad
prepare:
@cargo sqlx prepare
insert:
@# it inserts the data into the database
@cargo run --bin insert_pokemon
app:
@# cargo watch is needed to be installed
@# it hot reloads the app
@cargo watch -x 'shuttle run'
tailwind:
@# tailwindcss is needed to be installed
@# it hot reloads the tailwindcss by watching the content files specified in tailwind.config.js
@pnpm dlx tailwindcss -i ./assets/input.css -o ./assets/output.css --watch