-
Notifications
You must be signed in to change notification settings - Fork 0
Production Checklist
lpachecob edited this page Mar 24, 2026
·
1 revision
A checklist for deploying BOUNDLY applications to production.
- Copy
.env.exampleto.env - Set
APP_ENV=production - Set
APP_DEBUG=false - Generate
APP_KEYwithphp artisan key:generate - Configure database connection (MySQL/PostgreSQL)
- Configure cache driver (
redis,file,memcached) - Set
LOG_CHANNEL=dailyor your preferred log driver
- Set strong
APP_KEY - Configure
REQUEST_SIGNING_SECRET(if using HMAC) - Set
BOUNDLY_AUTH_GUARDto your auth provider - Enable CORS if needed:
'cors' => [ 'enabled' => true, 'allowed_origins' => ['https://yourdomain.com'], ],
- Review IP access control (if needed):
'ip_access' => [ 'enabled' => true, 'whitelist' => ['your-office-ip/32'], ],
- Set
BOUNDLY_DISABLE_CACHE=false(production) - Run
php artisan core:cacheto pre-compile metadata - Configure response cache if needed:
'cache' => [ 'response' => [ 'enabled' => true, 'store' => 'redis', 'ttl' => 60, ], ],
# Connect to server
ssh user@your-server.com
# Pull latest code
cd /var/www/boundly
git pull origin main
# Install dependencies
composer install --optimize-autoloader --no-dev
# Run deploy script
bash deploy.sh
# Restart PHP-FPM
sudo systemctl restart php-fpmAdd these commands to Forge Deploy Script:
php artisan core:migrate --force
php artisan core:cacheCreate a deployment hook:
php artisan core:migrate --force
php artisan core:cache# GitHub Actions example
- name: Deploy
run: |
ssh user@server "cd /var/www/app && bash deploy.sh"# Check health endpoint
curl https://your-domain.com/api/health
# Expected response:
{
"success": true,
"data": {
"status": "healthy",
"timestamp": "2026-..."
}
}composer testphp artisan optimize:clear
php artisan core:cacheBOUNDLY provides hooks for connecting your preferred monitoring tool.
// .env
MONITORING_API_KEY=your-sentry-dsn// config/boundly.php
'monitoring' => [
'enabled' => true,
'provider' => 'sentry',
'api_key' => env('MONITORING_API_KEY'),
],Then install Sentry SDK:
composer require sentry/sentry-laravelConfigure your metrics endpoint using BOUNDLY's health checks and logging.
Create your own monitoring provider by implementing a contract in Infrastructure/LaravelEngine/Providers/.
| Variable | Required | Description |
|---|---|---|
APP_ENV |
β | Set to production
|
APP_DEBUG |
β | Set to false
|
APP_KEY |
β | Generated with key:generate
|
APP_URL |
β | Your production URL |
DB_CONNECTION |
β | Database driver |
DB_HOST |
β | Database host |
DB_DATABASE |
β | Database name |
DB_USERNAME |
β | Database user |
DB_PASSWORD |
β | Database password |
CACHE_DRIVER |
β |
redis, file, etc. |
LOG_CHANNEL |
β | Log driver |
BOUNDLY_AUTH_GUARD |
β | Auth guard (default: sanctum) |
REQUEST_SIGNING_SECRET |
β | For HMAC signing |
MONITORING_API_KEY |
β | For error tracking |
- Check
.envdatabase credentials - Verify database server is accessible
- Check firewall rules
- Run
php artisan optimize:clear - Check
storage/logs/laravel.log - Verify
APP_KEYis set
# Check individual services
php artisan core:health --detailedphp artisan cache:clear
php artisan core:cache- Health-Checks - Monitoring endpoints
- Logging - Structured logging setup
- Configuration - All config options
- Security-Attributes - Security features
Back to: Home πͺ