You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey folks. Trying to run this not with the devcontainer. After make switch and make db with docker running, make sihl migrate produces the following output
~/Github/sihl-demo main !1 ?1
❯ open -a Docker.app
~/Github/sihl-demo main !1 ?1
❯ make db
Starting docker_database_1 ... done
Starting docker_adminer_1 ... done~/Github/sihl-demo main !1 ?1 3.0.1
❯ make sihl migrate
2021-08-19T14:13:26-00:00 [INFO] [sihl.core.app]: Setting up...
2021-08-19T14:13:26-00:00 [INFO] [sihl.core.configuration]: SIHL_ENV: development
2021-08-19T14:13:26-00:00 [INFO] [sihl.service.database]: Create pool with size 10
2021-08-19T14:13:26-00:00 [ERROR] [sihl.service.database]: Failed to connect to <postgres://admin:[email protected]:5432/dev>: Connection failure: FATAL: database "dev" does not exist
Command 'migrate' aborted after 86.474ms: 'Sihl__Contract_database.Exception("Failed to connect to <postgres://admin:[email protected]:5432/dev>: Connection failure: FATAL: database \"dev\" does not exist\n")'
Raised at Stdlib__map.Make.find in file "map.ml", line 136, characters 10-25
Called from Sexplib0__Sexp_conv.Exn_converter.find_auto in file "src/sexp_conv.ml", line 156, characters 10-37
~/Github/sihl-demo main !1 ?1
I suspect it has something to do with there being no volumes in the docker file and no init script therin creating the db?
Thank you for updating this to sihl@rc, by the way!
The text was updated successfully, but these errors were encountered:
Thanks for the report! Unfortunately, I was not able to replicate this problem on my machine. Are the two containers running after make db? Could you post the output of docker ps -a?
Hey folks. Trying to run this not with the devcontainer. After
make switch
andmake db
with docker running,make sihl migrate
produces the following outputI suspect it has something to do with there being no
volumes
in the docker file and noinit
script therin creating the db?Thank you for updating this to sihl@rc, by the way!
The text was updated successfully, but these errors were encountered: