📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials CodeIgniter 4 CI4 Deployment Checklist

CI4 Deployment Checklist

5 min read Quiz at the end
Deploy CI4: set production env, configure Nginx, set permissions, run migrations, clear cache.

CI4 Deployment

# .env
CI_ENVIRONMENT = production
app.baseURL = "https://yoursite.com/"

# Permissions
chmod 755 public/
chmod 600 .env

# Nginx
server {
    root /var/www/myapp/public;
    location / { try_files $uri $uri/ /index.php?$query_string; }
    location ~ \.env { deny all; }
}

# Run migrations
php spark migrate --env=production