generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* impliment makefile * update .PHONY and comments
- Loading branch information
1 parent
e2eda5e
commit dd1dfc2
Showing
3 changed files
with
35 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.PHONY: build start stop build-linter lint migrations migrate db-shell test-server test-frontend | ||
|
||
# Run commands with `make <target>` | ||
|
||
build: | ||
docker compose build | ||
|
||
start: | ||
docker compose up | ||
|
||
stop: | ||
docker compose down | ||
|
||
build-linter: | ||
docker compose build linter | ||
|
||
lint: | ||
docker compose up linter | ||
|
||
# Below commands require the docker containers to be running | ||
|
||
migrations: | ||
docker compose exec django python manage.py makemigrations | ||
|
||
migrate: | ||
docker compose exec django python manage.py migrate | ||
|
||
db-shell: | ||
docker compose exec django python manage.py shell | ||
|
||
test-frontend: | ||
docker compose run -T -w /code/frontend webpack npm run test | ||
|
||
test-server: | ||
docker exec django python manage.py test server.tests |
This file was deleted.
Oops, something went wrong.