26 lines
421 B
Makefile
26 lines
421 B
Makefile
default:
|
|
@just hello
|
|
|
|
run:
|
|
@cargo run main
|
|
|
|
bin args='':
|
|
@cargo run --bin {{args}}
|
|
|
|
hello:
|
|
@echo "Hello, world!"
|
|
|
|
# Start PostgreSQL
|
|
pg-up:
|
|
cd docker && docker-compose up -d
|
|
|
|
# Stop PostgreSQL
|
|
pg-down:
|
|
cd docker && docker-compose down
|
|
|
|
dev-install:
|
|
cargo install diesel_cli --no-default-features --features="postgres"
|
|
|
|
dev-reset:
|
|
diesel migration revert --all
|
|
|