Skip to content

Instantly share code, notes, and snippets.

@ichramm
Created February 4, 2020 13:22
Show Gist options
  • Select an option

  • Save ichramm/92abf8d497fcca7c55e233ca8845af2f to your computer and use it in GitHub Desktop.

Select an option

Save ichramm/92abf8d497fcca7c55e233ca8845af2f to your computer and use it in GitHub Desktop.
start datomic transactor
#!/bin/bash
$DATOMIC_DIR/bin/transactor \
./resources/db/sql-transactor.properties &
sleep 1
$DATOMIC_DIR/bin/console -p 8082 \
docker "datomic:sql://?jdbc:postgresql://localhost:5432/DB_NAME?user=datomic&password=datomic" &
on_exit() {
[[ -z "$(jobs -p)" ]] || kill $(jobs -p)
}
trap on_exit exit
wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment