-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(makefile): update makefile for long commands
- Loading branch information
1 parent
9f4e7fb
commit eff93a6
Showing
4 changed files
with
64 additions
and
23 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 |
---|---|---|
|
@@ -5,3 +5,23 @@ init: | |
yarn install --dev | ||
poetry env use 3.10 | ||
poetry install | ||
|
||
run_db: | ||
docker compose -f docker-compose-dev.yml up db -d | ||
|
||
run_local: init run_db | ||
export DATABASE_URL=postgresql://postgres:[email protected]:5432/pycontw2016 | ||
poetry run python src/manage.py runserver 0.0.0.0:8000 | ||
|
||
run_dev: | ||
docker compose -f docker-compose-dev.yml up -d | ||
bash -c "trap '' INT; docker compose -f docker-compose-dev.yml logs -f pycontw" | ||
|
||
stop_dev: | ||
docker compose -f docker-compose-dev.yml stop | ||
|
||
remove_dev: | ||
docker compose -f docker-compose-dev.yml down | ||
|
||
shell_dev: | ||
docker compose -f docker-compose-dev.yml exec -it pycontw /bin/sh |
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
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
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 |
---|---|---|
|
@@ -7,8 +7,11 @@ | |
# Note: No spaces around '=' sign and no quotes for righthand values. | ||
|
||
DEBUG=True | ||
# You have to set the DATABASE_URL if you are dealing with your own database server other than one we provide in `docker-compose-dev.yml`, | ||
# otherwise you may leave the DATABASE_URL variable unset. | ||
# DATABASE_URL= | ||
|
||
# syntax: DATABASE_URL=postgres://username:[email protected]:5432/database | ||
DATABASE_URL=sqlite:///db.sqlite3 | ||
# Command to create a new secret key: | ||
# $ python -c 'import random; import string; print("".join([random.SystemRandom().choice(string.digits + string.ascii_letters + string.punctuation) for i in range(100)]))' | ||
SECRET_KEY={{ secret_key }} |