Translation_app_ / QUICK_DEPLOY.md
Athena1621's picture
feat: Implement Multi-Lingual Product Catalog Translator frontend with Streamlit
67f25fb

A newer version of the Streamlit SDK is available: 1.56.0

Upgrade

Quick Deployment Guide

πŸš€ One-Command Deployment

For macOS/Linux:

chmod +x deploy.sh && ./deploy.sh

For Windows:

deploy.bat

πŸ“‹ Platform-Specific Commands

Local Development

# Auto-detect best method
./deploy.sh

# Force Docker
./deploy.sh docker

# Force standalone (no Docker)
./deploy.sh standalone

Cloud Platforms

# Hugging Face Spaces
./deploy.sh hf-spaces

# Railway
./deploy.sh cloud railway

# Render  
./deploy.sh cloud render

# Heroku
./deploy.sh cloud heroku

Management Commands

# Check status
./deploy.sh status

# Stop all services
./deploy.sh stop

# Show help
./deploy.sh help

πŸ”§ Environment Setup

  1. Copy environment file:

    cp .env.example .env
    
  2. Edit configuration as needed:

    nano .env
    

🌐 Access URLs

πŸ› Troubleshooting

Common Issues

  1. Port conflicts: Change DEFAULT_PORT in deploy.sh
  2. Python not found: Install Python 3.8+
  3. Docker issues: Ensure Docker is running
  4. Model loading: Check internet connection

Platform Issues

  • HF Spaces: Check app_file in README.md header
  • Railway/Render: Verify Dockerfile.standalone exists
  • Heroku: Ensure Procfile is created

πŸ“ž Quick Support

Run ./deploy.sh status to check deployment health.