fix: build.sh zeigt klare Fehlermeldung bei falschem Upload-Token
403 -> Erklaerung dass BUILD_UPLOAD_TOKEN der SECRET_KEY vom Server sein muss 000 -> Server nicht erreichbar Sonstige -> HTTP-Code + Response-Body Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
29cc00e284
commit
96d82967fc
11
build.sh
11
build.sh
|
|
@ -61,6 +61,17 @@ upload_to_server() {
|
|||
if [ "$http_code" = "200" ]; then
|
||||
info "Upload erfolgreich: $filename -> $CLOUD_URL"
|
||||
cat /tmp/upload_response.txt | python3 -m json.tool 2>/dev/null || cat /tmp/upload_response.txt
|
||||
elif [ "$http_code" = "403" ]; then
|
||||
error "Upload fehlgeschlagen: BUILD_UPLOAD_TOKEN ist falsch!"
|
||||
echo ""
|
||||
echo " Der BUILD_UPLOAD_TOKEN in deiner .env muss der SECRET_KEY"
|
||||
echo " oder JWT_SECRET_KEY vom Zielserver sein."
|
||||
echo ""
|
||||
echo " Pruefe auf dem Server: grep SECRET_KEY /pfad/zur/.env"
|
||||
echo " Dann den Wert in die lokale .env als BUILD_UPLOAD_TOKEN kopieren."
|
||||
echo ""
|
||||
elif [ "$http_code" = "000" ]; then
|
||||
error "Upload fehlgeschlagen: Server nicht erreichbar ($CLOUD_URL)"
|
||||
else
|
||||
warn "Upload fehlgeschlagen (HTTP $http_code)"
|
||||
cat /tmp/upload_response.txt 2>/dev/null
|
||||
|
|
|
|||
Loading…
Reference in New Issue