docs/recipe/codeigniter4.md
require 'recipe/codeigniter4.php';
Deployer is a free and open source deployment tool written in PHP. It helps you to deploy your Codeigniter 4 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 Codeigniter 4 consists of:
The codeigniter4 recipe is based on the common recipe.
Overrides public_path from recipe/provision/website.php.
Default Configurations
'public'
Overrides shared_dirs from recipe/deploy/shared.php.
['writable']
Overrides shared_files from recipe/deploy/shared.php.
['.env']
Overrides writable_dirs from recipe/deploy/writable.php.
[
'writable/cache',
'writable/debugbar',
'writable/logs',
'writable/session',
'writable/uploads',
]
'writable/logs/*.log'
$result = run('{{bin/php}} {{release_or_current_path}}/spark');
preg_match_all('/(\d+\.?)+/', $result, $matches);
return $matches[0][0] ?? 5.5;
Shows file cache information in the current system.
Discover & Checks
Check your Config values.
Retrieves the current environment, or set a new one.
Check filters for a route.
Find and save available phrases to translate.
Verifies your namespaces are setup correctly.
Check your php.ini values.
Displays all routes.
Generates a new encryption key and writes it in an .env file.
Actions
Optimize for production.
Discovers and executes all predefined Publisher classes.
Create a new database schema.
Database and migrations.
Runs the specified seeder to populate known data into the database.
Retrieves information on the selected table.
Locates and runs all new migrations against the database.
Does a rollback followed by a latest to refresh the current state of the database.
Runs the "down" method for all migrations in the last batch.
Displays a list of all migrations and whether they've been run or not.
Clears the current system caches.
Housekeeping
Clears all debugbar JSON files.
Clears all log files.
Run a custom spark command.
Custom Spark Command for shield or setting packages
Deploys your project.
Main deploy task.
This task is group task which contains next tasks: