Basic Deployer configuration for Pimcore which can be used for deployment process.
-
(Optional) Add deployer to your project by composer
composer require deployer/deployer:^3.2
This step is optional because Deployer can be installed globally.
- Copy
deploy.phpandservers.yml.distto your project repository. You can also use my.gitignore. - (Optional) Add pimcore-sak to the repository as it allows migrating Pimcore classes
automatically (just remember to use
php extra/shell/MigrateCommit.phpto export them to JSON). - Create
servers.ymlfile - servers configuration. You can base onservers.yml.dist. - Set you project repository address in
deploy.php. Optionally add your own scripts - Deployer Docs. - (Deployment) Go to your project directory in terminal and run
php vendor/bin/dep deploy prod