Options for Deployment
Deploy Glueful to production
Deploy your Glueful application to production environments with confidence.
Deployment Options
- Production Setup - Server configuration and optimization
- Docker - Containerized deployment
- Zero Downtime - Deploy without service interruption
Quick Start
# Install dependencies
composer install --no-dev --optimize-autoloader --classmap-authoritative
# Run database migrations
php glueful migrate:run
# Start workers and scheduler
php glueful queue:work
php glueful queue:scheduler work
Note: Use a production web server (e.g., Nginx + PHP-FPM or Caddy). The serve
command is for local development only.
Production Checklist
- Environment variables configured
- Database migrations run
- Dependencies optimized
- Queue workers running
- Scheduler configured
- Scheduler running (daemon or cron)
- Logs configured
- Backups automated
- Monitoring enabled
- SSL/TLS enabled
- Firewall configured
- Production audit run:
php vendor/bin/glueful system:production --check
- DI container compiled (optional):
php vendor/bin/glueful di:container:compile --optimize
Deployment Workflow
- Build - Install dependencies and optimize
- Test - Run test suite
- Package - Create deployment artifact
- Audit - Run
system:production --check
and address issues - Migrate - Update database schema
- Deploy - Release new version
- Monitor - Watch for issues
Infrastructure
Web Server
- Nginx + PHP-FPM (recommended)
- Caddy (simpler alternative)
- Apache + mod_php
Background Services
- Queue workers
- Task scheduler
- Cron jobs
Supporting Services
- Database (MySQL, PostgreSQL, SQLite)
- Cache (Redis, Memcached)
- Storage (Local, S3, Azure, GCS)
Next Steps
Start with Production Setup to learn how to deploy to a production server.