add media setup instructions to new-app.sh output

This commit is contained in:
2026-03-19 22:31:02 -04:00
parent f9788ff178
commit 4516ed7bab
+20
View File
@@ -400,6 +400,16 @@ ELAPSED=0
for i in $(seq 1 18); do
if curl -sf "https://www.$APP" > /dev/null 2>&1; then
printf "\r\033[K Site is live at https://www.$APP\n"
echo ""
echo "==> Next steps: media files"
echo " Create a local media directory for testing:"
echo " mkdir -p $APP/static/media"
echo ""
echo " Upload media to Garage:"
echo " aws --endpoint-url https://s3.hantim.net s3 cp <file> s3://$APP/<path>"
echo " aws --endpoint-url https://s3.hantim.net s3 sync static/media/ s3://$APP/"
echo ""
echo " Media files are served at https://www.$APP/media/"
exit 0
fi
spin_wait 10 "Waiting for site..." "$ELAPSED"
@@ -412,3 +422,13 @@ echo " Check that:"
echo " - DNS for $APP and www.$APP points to $SERVER_IP"
echo " - The build completed: $GITEA_URL/$GITEA_ORG/$APP/actions"
echo " - The container is running on the server: docker ps"
echo ""
echo "==> Next steps: media files"
echo " Create a local media directory for testing:"
echo " mkdir -p $APP/static/media"
echo ""
echo " Upload media to Garage:"
echo " aws --endpoint-url https://s3.hantim.net s3 cp <file> s3://$APP/<path>"
echo " aws --endpoint-url https://s3.hantim.net s3 sync static/media/ s3://$APP/"
echo ""
echo " Media files are served at https://www.$APP/media/"