Skip to content
Snippets Groups Projects
Commit 79393072 authored by David Trattnig's avatar David Trattnig
Browse files

feat: add db util targets

parent e74a5d87
No related branches found
No related tags found
No related merge requests found
Pipeline #2759 passed
......@@ -9,7 +9,9 @@ help::
@echo " spell - check spelling of text"
@echo " format - apply automatic formatting"
@echo " test - run test suite"
@echo " recreatedb - drop and re-init the database"
@echo " db.init - drop and re-init the database"
@echo " db.status - display database status"
@echo " db.connect - connect to the database"
@echo " log - tail log file"
@echo " run - start app"
$(call docker_help)
......@@ -63,10 +65,16 @@ format::
test::
poetry run python3 -m unittest discover . --pattern "test_*.py"
recreatedb::
db.init::
sudo -u postgres psql -f contrib/postgresql-drop-all.sql
sudo -u postgres psql -f contrib/postgresql-create-database.sql
db.status::
pg_isready -d aura_engine -h localhost -p 5432 -U aura_engine
db.connect::
PGHOST=127.0.0.1 PGPORT=5432 PGUSER=aura_engine PGPASSWORD=1234 PGDATABASE=aura_engine psql
log::
tail -f logs/AuraEngine.log
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment