gost / server

GOST - Go implementation of OGC SensorThings API
MIT License
61 stars 19 forks source link

Initialising database for binary version of server #175

Closed dkuaner closed 4 years ago

dkuaner commented 4 years ago

When working with binary version of the server, valid endpoints give out 500 error saying postgresql has no schema v1 or database gost, is there a way to automatically initialize the database for binary version of the server or does it have to be done manually?

bertt commented 4 years ago

Hi, in the server there is no functionality to initialize the database. So first a database with valid schema has to be created, after that the server will work. Sql script for creating database schema can be found at https://github.com/gost/gost-db/blob/master/gost_init_db.sql

dkuaner commented 4 years ago

@bertt Thanks so much for the clarification, closing the issue now