# Kobelly Base Website - Makefile .PHONY: help install build clean run run-prod deploy dev-setup docker-run docker-run-dev docker-stop docker-stop-dev docker-logs docker-logs-dev # Default target help: @echo "Kobelly Base Website - Available Commands:" @echo "" @echo "Development:" @echo " install - Install Python dependencies" @echo " dev-setup - Setup development environment" @echo " run - Run development server" @echo " run-prod - Run production server" @echo "" @echo "Build & Deploy:" @echo " build - Build minified assets" @echo " clean - Clean old assets" @echo " deploy - Clean and build assets" @echo "" @echo "Docker:" @echo " docker-run - Run production Docker container" @echo " docker-run-dev - Run development Docker container" @echo " docker-stop - Stop production container" @echo " docker-stop-dev - Stop development container" @echo " docker-logs - View production logs" @echo " docker-logs-dev - View development logs" # Install dependencies install: @echo "๐Ÿ“ฆ Installing Python dependencies..." pip install -r requirements.txt @echo "โœ… Dependencies installed successfully!" # Setup development environment dev-setup: install @echo "๐Ÿ”ง Setting up development environment..." @echo "โœ… Development environment ready!" @echo "๐Ÿ’ก Run 'make run' to start the development server" # Build assets build: @echo "๐Ÿ”จ Building assets..." python build_assets.py @echo "โœ… Assets built successfully!" # Clean old assets clean: @echo "๐Ÿงน Cleaning old assets..." python build_assets.py clean @echo "โœ… Cleanup completed!" # Deploy (clean + build) deploy: clean build @echo "๐Ÿš€ Deployment ready!" # Run development server run: @echo "๐Ÿš€ Starting development server..." @echo "๐ŸŒ Website will be available at: http://localhost:5000" @echo "๐Ÿ”ง Debug mode: ON" @echo "๐Ÿ“ Press Ctrl+C to stop" FLASK_DEBUG=1 python app.py # Run production server run-prod: @echo "๐Ÿš€ Starting production server..." @echo "๐ŸŒ Website will be available at: http://localhost:5000" @echo "๐Ÿ”ง Debug mode: OFF" @echo "๐Ÿ“ Press Ctrl+C to stop" FLASK_DEBUG=0 python app.py # Docker commands docker-run: @echo "๐Ÿณ Running production Docker container..." docker-compose up --build -d @echo "โœ… Production container started!" @echo "๐ŸŒ Website available at: http://localhost:10332" docker-run-dev: @echo "๐Ÿณ Running development Docker container..." docker-compose -f docker-compose.dev.yml up --build -d @echo "โœ… Development container started!" @echo "๐ŸŒ Website available at: http://localhost:10333" docker-stop: @echo "๐Ÿ›‘ Stopping production Docker container..." docker-compose down @echo "โœ… Production container stopped!" docker-stop-dev: @echo "๐Ÿ›‘ Stopping development Docker container..." docker-compose -f docker-compose.dev.yml down @echo "โœ… Development container stopped!" docker-logs: @echo "๐Ÿ“‹ Production container logs:" docker-compose logs -f docker-logs-dev: @echo "๐Ÿ“‹ Development container logs:" docker-compose -f docker-compose.dev.yml logs -f # Additional utility commands test: @echo "๐Ÿงช Running tests..." @echo "โš ๏ธ No tests configured yet" @echo "๐Ÿ’ก Add your test commands here" lint: @echo "๐Ÿ” Running linting..." @echo "โš ๏ธ No linting configured yet" @echo "๐Ÿ’ก Add your linting commands here" format: @echo "๐ŸŽจ Formatting code..." @echo "โš ๏ธ No formatting configured yet" @echo "๐Ÿ’ก Add your formatting commands here" # Database commands (if needed in the future) db-migrate: @echo "๐Ÿ—„๏ธ Running database migrations..." @echo "โš ๏ธ No database configured yet" @echo "๐Ÿ’ก Add your migration commands here" db-seed: @echo "๐ŸŒฑ Seeding database..." @echo "โš ๏ธ No database configured yet" @echo "๐Ÿ’ก Add your seeding commands here" # Backup and restore (if needed in the future) backup: @echo "๐Ÿ’พ Creating backup..." @echo "โš ๏ธ No backup configured yet" @echo "๐Ÿ’ก Add your backup commands here" restore: @echo "๐Ÿ“ฅ Restoring from backup..." @echo "โš ๏ธ No restore configured yet" @echo "๐Ÿ’ก Add your restore commands here"