Commit 070b9bd
authored
fix: add retry logic to supabase-start script for improved reliability (#523)
# Add retry logic to Supabase startup script
This PR improves the reliability of the Supabase startup process by implementing retry logic in the `supabase-start.sh` script. The changes:
- Add a 2-second delay after stopping Supabase to ensure ports are fully released
- Implement up to 3 retry attempts when starting Supabase
- Add a 5-second delay between retry attempts
- Improve error messaging to show which attempt is currently running
- Provide a more informative failure message when all retry attempts are exhausted
This helps address transient port binding issues and Docker race conditions that occasionally cause startup failures.1 parent 00921ca commit 070b9bd
1 file changed
+26
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
0 commit comments