Spaces:
Sleeping
Sleeping
Deployment Cheat Sheet
Use this quick reference whenever you want to update your app.
⚠️ Important: You typically need Git installed to deploy the backend automatically. Since
gitwas not found in your terminal, you might need to install it from git-scm.com or use GitHub Desktop.
🏁 Professional Workflow: Use
git sync-allto push to both GitHub and Hugging Face simultaneously.
1. Backend Updates (Hugging Face)
When: You want better performance (16GB RAM).
- Create a Space on Hugging Face (Docker).
- Connect GitHub or upload
backend/andDockerfile. - Add
app_port: 10000to your Space'sREADME.mdmetadata. - Copy the URL (e.g.,
https://user-space.hf.space) and updatemockAI.js.
2. Backend Updates (Render)
When: You changed Python files, requirements.txt, or Dockerfile.
- Save your changes.
- Push to GitHub.
- Done! Watch it update on your Render Dashboard.
3. Frontend Updates (Fast)
When: You changed JavaScript code.
- Run:
npx eas-cli update --branch preview --message "Small fix" - Done! App updates instantly.
4. Frontend Rebuild (Slow)
When: You added a new package or changed app.json.
- Run:
npx eas-cli build -p android --profile preview - Install the new APK from the link provided.