Search the Docs for…

Upgrade to Pro
Get Pro Themes, Patterns, access to Teams, Projects, a Theme Builder, and more!

Purchase Web Awesome Pro

With Laravel By Martin Joo - Devops

DevOps isn't a job title. It's a set of practices. For a Laravel developer, that means treating your servers, queues, caches, and deploys as part of the codebase.

We need a symlink release strategy. Instead of updating the "current" folder, we deploy to a release folder and then symlink. DevOps with Laravel by Martin Joo

# Typical Forge Deploy Script cd $site git pull origin $branch composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev Maintenance mode (for zero-downtime? No. We'll fix this below) php artisan down --retry=60 || true Migrate php artisan migrate --force Clear caches php artisan optimize:clear php artisan config:cache php artisan event:cache php artisan route:cache php artisan view:cache Restart queue workers php artisan queue:restart Bring it back up php artisan up 2. The Enemy of Laravel: "php artisan down" That script above has a problem. php artisan down takes your site offline. In 2024, that is unacceptable. DevOps isn't a job title

By Martin Joo

Treat your infrastructure the way you treat your code: versioned, automated, and boring. Boring is stable. Stable is fast. Martin Joo writes about Laravel architecture and clean code. If you enjoyed this, stop fighting your server and start shipping. We need a symlink release strategy

    No results
    Navigate Enter Select Esc Close