From 4516ed7baba8cb38dc49f2696a42ce837f4624a8 Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Thu, 19 Mar 2026 22:31:02 -0400 Subject: [PATCH] add media setup instructions to new-app.sh output --- tools/new-app.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools/new-app.sh b/tools/new-app.sh index d5fc16b..fe1ac05 100755 --- a/tools/new-app.sh +++ b/tools/new-app.sh @@ -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 s3://$APP/" + 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 s3://$APP/" +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/"