Created
February 4, 2020 13:22
-
-
Save ichramm/92abf8d497fcca7c55e233ca8845af2f to your computer and use it in GitHub Desktop.
start datomic transactor
This file contains hidden or 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
| #!/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