docs/recipe/spiral.md
require 'recipe/spiral.php';
Deployer is a free and open source deployment tool written in PHP. It helps you to deploy your Spiral 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 Spiral consists of:
The spiral recipe is based on the common recipe.
Overrides shared_dirs from recipe/deploy/shared.php.
Spiral shared dirs
['runtime']
Overrides writable_dirs from recipe/deploy/writable.php.
Spiral writable dirs
['runtime', 'public']
Path to the RoadRunner server
'{{release_or_current_path}}'
Overrides dotenv_example from recipe/deploy/env.php.
'.env.sample'
Configure project.
Spiral Framework console commands
Update (init) cycle schema from database and annotated classes.
Perform all outstanding migrations.
Update project state.
Clean application runtime cache.
Reset translation cache.
Generate new encryption key, if it doesn't exist.
Warm-up view cache.
Clear view cache.
Generate ORM schema migrations.
Cycle ORM and migrations console commands
Render available CycleORM schemas.
Sync Cycle ORM schema with database without intermediate migration (risk operation).
Init migrations component (create migrations table).
Replay (down, up) one or multiple migrations.
Rollback one (default) or multiple migrations.
Get list of all available migrations and their statuses.
Start RoadRunner server.
RoadRunner console commands
Stop RoadRunner server.
Reset workers of all services.
Download RoadRunner.
Download and restart RoadRunner
Restart RoadRunner.
Deploys your project.
Main task
This task is group task which contains next tasks: