docs/recipe/laravel.md
require 'recipe/laravel.php';
Deployer is a free and open source deployment tool written in PHP. It helps you to deploy your Laravel application to a server. It is very easy to use and has a lot of features.
Three main features of Deployer are:
Additionally, Deployer has a lot of other features, like:
You can read more about Deployer in Getting Started.
The deploy task of Laravel consists of:
The laravel recipe is based on the common recipe.
Overrides shared_dirs from recipe/deploy/shared.php.
['storage']
Overrides shared_files from recipe/deploy/shared.php.
['.env']
Overrides writable_dirs from recipe/deploy/writable.php.
[
'bootstrap/cache',
'storage',
]
Overrides writable_recursive from recipe/deploy/writable.php.
true
'storage/logs/*.log'
'{{release_or_current_path}}/artisan'
$result = run("{{bin/php}} {{bin/artisan}} --version");
preg_match_all('/(\d+\.?)+/', $result, $matches);
return $matches[0][0] ?? 5.5;
Overrides public_path from recipe/provision/website.php.
'public'
Puts the application into maintenance / demo mode.
Maintenance mode.
Brings the application out of maintenance mode.
Sets the application key.
Generate keys.
Creates the encryption keys for API authentication.
Seeds the database with records.
Database and migrations.
Runs the database migrations.
Drops all tables and re-run all migrations.
Rollbacks the last database migration.
Shows the status of each migration.
Flushes the application cache.
Cache and optimizations.
Creates a cache file for faster configuration loading.
Removes the configuration cache file.
Discovers and cache the application's events and listeners.
Clears all cached events and listeners.
Lists the application's events and listeners.
Cache the framework bootstrap files.
Removes the cached bootstrap files.
Reload running services.
Creates a route cache file for faster route registration.
Removes the route cache file.
Lists all registered routes.
Creates the symbolic links configured for the application.
Compiles all of the application's Blade templates.
Clears all compiled view files.
Lists all of the failed queue jobs.
Queue and Horizon.
Flushes all of the failed queue jobs.
Restarts queue worker daemons after their current job.
Starts a master supervisor in the foreground.
Deletes all of the jobs from the specified queue.
Instructs the master supervisor to continue processing jobs.
Lists all of the deployed machines.
Pauses the master supervisor.
Terminates any rogue Horizon processes.
Gets the current status of Horizon.
Terminates the master supervisor so it can be restarted.
Publish all of the Horizon resources.
Lists all of the supervisors.
Deletes metrics for all jobs and queues.
Stores a snapshot of the queue metrics.
Interrupt in-progress schedule:run invocations.
Scheduler.
Clears all entries from Telescope.
Telescope.
Prunes stale entries from the Telescope database.
Starts the octane server.
Octane.
Reloads the octane server.
Stops the octane server.
Check the status of the octane server.
Publish all of the Laravel Nova resources.
Nova.
Starts the Reverb server.
Reverb.
Restarts the Reverb server.
Starts the Pulse server.
Pulse.
Restarts the Pulse server.
Purges all Pulse data from storage.
Process incoming Pulse data from the ingest stream.
Deploys your project.
Main deploy task.
This task is group task which contains next tasks: