Skip to content

Commit

Permalink
chore: use docker 'run' command to run dev postgres container instead…
Browse files Browse the repository at this point in the history
… of using compose
  • Loading branch information
arcanemachine committed Oct 17, 2023
1 parent 5bbe437 commit 4c15b3e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ color_reset := "\\033[39m"

# run a postgres container
@postgres:
# this peculiar incantation is the only way i've been able to get this command
# to work properly without aborting entirely when Ctrl+C is pressed
@$SHELL -c "just docker-postgres up; just docker-postgres down"
docker run --name postgres --rm -e POSTGRES_PASSWORD=postgres -p 5432:5432 postgres

# setup the project (elixir-fetch-dependencies + db-setup)
@setup: elixir-dependencies-fetch db-setup
Expand Down

0 comments on commit 4c15b3e

Please sign in to comment.