deployer/docs/recipe/prestashop.md
2024-04-18 15:25:17 +00:00

4.0 KiB
Raw Blame History

How to Deploy a Prestashop Project

require 'recipe/prestashop.php';

Source

Deployer is a free and open source deployment tool written in PHP. It helps you to deploy your Prestashop application to a server. It is very easy to use and has a lot of features.

Three main features of Deployer are:

  • Provisioning - provision your server for you.
  • Zero downtime deployment - deploy your application without a downtime.
  • Rollbacks - rollback your application to a previous version, if something goes wrong.

Additionally, Deployer has a lot of other features, like:

  • Easy to use - Deployer is very easy to use. It has a simple and intuitive syntax.
  • Fast - Deployer is very fast. It uses parallel connections to deploy your application.
  • Secure - Deployer uses SSH to connect to your server.
  • Supports all major PHP frameworks - Deployer supports all major PHP frameworks.

You can read more about Deployer in Getting Started.

The deploy task of Prestashop consists of:

The prestashop recipe is based on the common recipe.

Configuration

shared_files

Source

Overrides shared_files from recipe/deploy/shared.php.

[
    'config/settings.inc.php',
    '.htaccess',
]

shared_dirs

Source

Overrides shared_dirs from recipe/deploy/shared.php.

[
    'img',
    'log',
    'download',
    'upload',
    'translations',
    'mails',
    'themes/default-bootstrap/lang',
    'themes/default-bootstrap/mails',
    'themes/default-bootstrap/pdf/lang',
]

writable_dirs

Source

Overrides writable_dirs from recipe/deploy/writable.php.

[
    'img',
    'log',
    'cache',
    'download',
    'upload',
    'translations',
    'mails',
    'themes/default-bootstrap/lang',
    'themes/default-bootstrap/mails',
    'themes/default-bootstrap/pdf/lang',
    'themes/default-bootstrap/cache',
]

Tasks

deploy

Source

Deploys your project.

This task is group task which contains next tasks: