File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -74,12 +74,15 @@ func DB(ctx context.Context) error {
74
74
75
75
func newServer (ctx context.Context ) (server.RunnableServer , error ) {
76
76
ds , err := datastore .NewDatastore (ctx ,
77
- datastore .WithEngine (datastore .PostgresEngine ),
78
77
datastore .DefaultDatastoreConfig ().ToOption (),
78
+ datastore .WithEngine (datastore .PostgresEngine ),
79
79
datastore .WithRequestHedgingEnabled (false ),
80
+ // must run migrations first
81
+ // spicedb migrate --datastore-engine=postgres --datastore-conn-uri "postgres://postgres:postgres@localhost:5432/spicedb?sslmode=disable" head
82
+ datastore .WithURI (`postgres://postgres:postgres@localhost:5432/spicedb?sslmode=disable` ),
80
83
)
81
84
if err != nil {
82
- log .Fatalf ("unable to start memdb datastore: %s" , err )
85
+ log .Fatalf ("unable to start postgres datastore: %s" , err )
83
86
}
84
87
85
88
configOpts := []server.ConfigOption {
You can’t perform that action at this time.
0 commit comments