Closed mvaaltola closed 2 years ago
Ah, the pg_tileserv does not work in the beginning, since the db and user are not created. Run make test-create-db
and after that make test-lipas
to create and populate the db. And you are right, these instructions should be in the README.md
Running make test-create-db
results in:
10:15:30 $ make test-create-db
curl -XPOST "http://localhost:8081/2015-03-31/functions/function/invocations" -d '"event_type" : 1}'
{"errorMessage": "Unable to unmarshal input: Extra data: line 1 column 14 - line 1 column 18 (char 13 - 17)", "errorType": "Runtime.UnmarshalError", "stackTrace": []}⏎
There is a typo in the Makefile. It should be -d '{"event_type" : 1}'
...
That's fixed it. I'll close this after updating the makefile and readme.
Following the readme, running
docker-compose -f docker-compose.dev.yml up -d
results in:Also tried starting other services first before running pg_tileserv, but with the same results.
Perhaps some data import or schema initialisation step missing from the readme?