my-multiplayer-app / deploy.sh
Jaimodiji's picture
Upload folder using huggingface_hub
596bc67 verified
#!/bin/bash
# s
set -e # Exit on error
echo "πŸš€ Starting deployment process..."
# 1. Build the project
echo "πŸ“¦ Building project..."
npm run build
# 2. Deploy to Cloudflare
echo "☁️ Deploying to Cloudflare..."
npx wrangler deploy
# 3. Upload to Hugging Face
echo "πŸ€— Uploading to Hugging Face..."
/home/u0_a369/.local/bin/hf upload Jaimodiji/my-multiplayer-app . . \
--repo-type space \
--exclude "node_modules/*" \
--exclude "dist/*" \
--exclude ".wrangler/*" \
--exclude ".git/*" \
--exclude ".env" \
--exclude ".dev.vars" \
--exclude "temp/*" \
--exclude "restored_files/*" \
--exclude "*.sqlite" \
--exclude "*.log"
echo "βœ… Deployment completed successfully!"