Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/supabase/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ Requires `supabase/config.toml` to be created in your current working directory

All service containers are started by default. You can exclude those not needed by passing in `-x` flag.

> It is recommended to have at least 7GB of RAM to start all services.

Health checks are automatically added to verify the started containers. Use `--ignore-health-check` flag to ignore these errors.
7 changes: 7 additions & 0 deletions docs/supabase/stop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## supabase-stop

Stops the Supabase local development stack.

Requires `supabase/config.toml` to be created in your current working directory by running `supabase init`.

All Docker resources are cleaned up by default. Use `--backup` flag to persist your local development data between restarts.
3 changes: 2 additions & 1 deletion docs/templates/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ supabase-stop:
name: Backup local database before stopping
code: supabase stop --backup
response: |
Database exported to supabase/.branches/main
Postgres database saved to volume: supabase_db_cli
Storage directory saved to volume: supabase_storage_cli
Stopped supabase local development setup.
supabase-status:
- id: basic-usage
Expand Down
5 changes: 4 additions & 1 deletion internal/stop/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ func stop(ctx context.Context, backup bool) error {
return err
}
// Remove named volumes
if !backup {
if backup {
fmt.Fprintln(os.Stderr, "Postgres database saved to volume:", utils.DbId)
fmt.Fprintln(os.Stderr, "Storage directory saved to volume:", utils.StorageId)
} else {
// TODO: label named volumes to use VolumesPrune for branch support
volumes := []string{utils.DbId, utils.StorageId}
utils.WaitAll(volumes, func(name string) {
Expand Down