diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f606d5e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +repo diff --git a/supabase/README.md b/supabase/README.md index fc53898..1aa7c07 100644 --- a/supabase/README.md +++ b/supabase/README.md @@ -1,3 +1,5 @@ # Supabase -Copied and adapted from https://github.com/supabase/supabase/tree/master/docker +- copied from https://github.com/supabase/supabase/tree/master/docker +- removed `container_name` +- removed `ports` diff --git a/supabase/update.sh b/supabase/update.sh index 317ab09..579412d 100644 --- a/supabase/update.sh +++ b/supabase/update.sh @@ -1,4 +1,13 @@ #!/bin/bash +# check if ./repo exists +if [ ! -d "./repo" ]; then + git clone --depth 1 --branch master --single-branch https://github.com/supabase/supabase repo +else + cd repo + git pull + cd .. +fi + # copy files from ./repo/docker to ./code cp -r ./repo/docker/* ./code