2222 @docker compose up --detach
2323
2424down :
25- @docker compose down
25+ @docker compose --profile " * " down
2626
2727shell : up
2828 @docker compose exec $(CONTAINER ) bash
@@ -50,6 +50,17 @@ update-dependencies: up
5050build :
5151 @docker compose build
5252
53+ serve-tools :
54+ @docker compose --profile tools up --detach
55+ @echo Running Adminer at http://localhost:8080/
56+
57+ db-push :
58+ @docker compose exec ${CONTAINER} sh -c " npx drizzle-kit push"
59+
60+ db-migrate :
61+ @docker compose exec ${CONTAINER} sh -c " npx drizzle-kit generate"
62+ @docker compose exec ${CONTAINER} sh -c " npx drizzle-kit migrate"
63+
5364$(SOURCE_DIR ) /node_modules :
5465 @echo Installing JS dependencies. This will take awhile.
5566 docker compose exec $(CONTAINER ) sh -c " npm install"
@@ -63,6 +74,10 @@ clean-astro-content:
6374 @$(RemoveDirCmd ) $(call FixPath,$(SOURCE_DIR ) /.astro)
6475 @$(RemoveDirCmd ) $(call FixPath,$(SOURCE_DIR ) /node_modules/.astro-og-canvas)
6576
77+ clean-db :
78+ @echo Removing database volume
79+ @docker volume rm website_pg_data
80+
6681clean-js-dist :
6782 @echo Removing the $(SOURCE_DIR ) /dist directory.
6883 @$(RemoveDirCmd ) $(call FixPath,$(SOURCE_DIR ) /dist)
@@ -74,5 +89,6 @@ clean-js-modules:
7489clean : clean-js-dist clean-js-modules
7590
7691.PHONY : serve up down build shell dist version \
77- clean clean-astro-content clean-js-dist clean-js-modules \
92+ prettier serve-tools upgrade-astro update-dependencies \
93+ clean clean-astro-content clean-db clean-js-dist clean-js-modules \
7894 .FORCE
0 commit comments