Init database migration before remote schema is running

Author: dostalradimCreated Jan 17, 2020Updated Sep 22, 2026
Labelsc/serverc/migrationsiterationt/product-platform

Hi, my programmers have their psql and hasura containers in their dev environment and when I need to deploy the application depending on hasura and psql to another environment I have a problem with circle dependency.

They create init migration and save it to the application repository (is it right way?) then I just create empty database and hasura engine almost without configuration and run "hasura migration apply" but our app is external graphql endpoint set in hasura with env property and our application cannot run before hasura migration init is done. So I get this error:

FATA[0002] apply failed: [remote-schema-error] HTTP exception occurred while sending the request to https://app/graphql ($.args[2].args.remote_schemas[0])

I got it but I do not know right way to do this steps. Can you recommend me better procedure please?

Thank you