diff --git a/upload b/upload
index 403725c88eb4be5b79858115d8314b6212b5ac96..5b19b66f8dcae36d161fa2c9a6fce5c680e33347 100755
--- a/upload
+++ b/upload
@@ -5,7 +5,8 @@ then
 	read -s LFTP_PASSWORD; export LFTP_PASSWORD
 fi
 
-rm -rf public/*
+rm -rf build
+mkdir -p build/theme
 node index.js --noserver
 echo "Site compiled"
 chmod a+X build -R