deployer/docs/recipe/fuelphp.md
Anton Medvedev e80876d90d Update docs
2022-07-26 09:18:44 +02:00

2.0 KiB

How to Deploy Fuelphp

Source

How to deploy a Fuelphp project with zero downtime?

  • First, install the Deployer.
  • Second, require recipe/fuelphp.php recipe into your deploy.php or deploy.yaml file.
  • Third, and now you can have a zero downtime deployment!

Did you know that you can deploy Fuelphp project with a single command? Just run dep deploy. Something went wrong? Just run dep rollback to rollback your changes. Also, you can take an advantage of the Deployer's CLI to deploy your project.

Another cool feature of the Deployer is provisioning. Take any server, and run dep provision command. This command will configure webserver, databases, php, ssl certificates, and more. You will get everything you need to run your Fuelphp project.

Deployer does next steps to deploy Fuelphp:

  • Displays info about deployment
  • Prepares host for deploy
  • Locks deploy
  • Prepares release
  • Updates code
  • Creates symlinks for shared files and dirs
  • Makes writable dirs
  • Installs vendors
  • Creates symlink to release
  • Unlocks deploy
  • Cleanup old releases

The fuelphp recipe is based on the common recipe.

Configuration

shared_dirs

Source

Overrides shared_dirs from recipe/deploy/shared.php.

FuelPHP 1.x shared dirs

[
    'fuel/app/cache', 'fuel/app/logs',
]

Tasks

deploy

Source

Deploys your project.

Main task

This task is group task which contains next tasks: