I have a cloud version of supabase, but now I want to set up a local version thats sync'd to my prod. I have installed the supabase cli and docker, and ive followed various instructions, but no matter what I do I always have issue when trying to apply the migration I have downloaded from the cloud. Heres the steps I follow below, can anyone spot what im doing wrong?
Within my project:
- supabase init
- supabase login
- supabase link
- then select my project to link to
- supabase start
- supabase db pull (which pulls in my migration)
- then either supabase db reset or supabase db start
- it always fails with the container showing as unhealthy
one of the errors I see multipul times is 'psql: error: /docker-entrypoint-initdb.d/init-scripts/99-roles.sql: No such file or directory'
Anyone got any ideas?