thadillo
Initial commit: Participatory Planning Application
23654e5
raw
history blame
858 Bytes
#!/bin/bash
# Quick start script for production deployment
set -e
echo "πŸš€ Starting Participatory Planning Application..."
# Check if venv exists
if [ ! -d "venv" ]; then
echo "❌ Virtual environment not found. Please run setup first."
exit 1
fi
# Activate virtual environment
source venv/bin/activate
# Check if gunicorn is installed
if ! command -v gunicorn &> /dev/null; then
echo "πŸ“¦ Installing gunicorn..."
pip install gunicorn==21.2.0
fi
# Check environment variables
if [ ! -f ".env" ]; then
echo "❌ .env file not found. Please create it first."
exit 1
fi
# Start application
echo "βœ… Starting server on port 8000..."
echo "πŸ“ Access at: http://$(hostname -I | awk '{print $1}'):8000"
echo "πŸ”‘ Admin token: ADMIN123"
echo ""
echo "Press Ctrl+C to stop"
echo ""
gunicorn --config gunicorn_config.py wsgi:app