chore: add regen_migrations script and seed-database to Justfile
This commit is contained in:
parent
d641711ecf
commit
e3779a73ff
2 changed files with 24 additions and 2 deletions
7
Justfile
7
Justfile
|
|
@ -1,4 +1,4 @@
|
|||
run: install-dependencies start-database migrate-database
|
||||
run: install-dependencies start-database migrate-database seed-database
|
||||
mix phx.server
|
||||
|
||||
install-dependencies:
|
||||
|
|
@ -10,6 +10,9 @@ migrate-database:
|
|||
reset-database:
|
||||
mix ash.reset
|
||||
|
||||
seed-database:
|
||||
mix run priv/repo/seeds.exs
|
||||
|
||||
start-database:
|
||||
docker compose up -d
|
||||
|
||||
|
|
@ -36,4 +39,4 @@ build-docker-container:
|
|||
|
||||
# This is meant for debugging the container build process only.
|
||||
run-docker-container: build-docker-container
|
||||
docker run -e "SECRET_KEY_BASE=ahK8BeiDaibaige1ahkooS0chie9lo7the7uuzar0eeBeeCh2iereteshee2Oosu" -e='DATABASE_URL=postgres://postgres@localhost:5432/mv_dev' -e='PORT=4040' -e='PHX_HOST=localhost' --network=host mitgliederverwaltung
|
||||
docker run -e "SECRET_KEY_BASE=ahK8BeiDaibaige1ahkooS0chie9lo7the7uuzar0eeBeeCh2iereteshee2Oosu" -e='DATABASE_URL=postgres://postgres@localhost:5432/mv_dev' -e='PORT=4040' -e='PHX_HOST=localhost' --network=host mitgliederverwaltung
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue