8
0
Datei suchen
2024-10-17 09:14:26 +02:00
composer.json can setup an OXID eShop from repository 2024-10-16 08:20:07 +02:00
deploy.php can execute OXID migrations 2024-10-17 09:14:26 +02:00
inventory.yml add optional composer bin path 2024-10-17 08:52:03 +02:00
README.md align documentation 2024-10-17 08:55:37 +02:00

Usage

This project uses Deployer for scripted installation

Preparation

Initial setup

Install Composer.

Clone the repository into a separate directory (deployer for example) on your server and checkout this branch.

Run composer install. Commit the composer.lock file, if it's changed.

Add an alias for the deployer command: alias dep='/usr/local/php8.2/bin/php /home/XXX/deployer/vendor/bin/dep'. Load the changed configuration.

Create a deploy key (if it's not exist). Set it in the repository settings.

Update Deployer

  • cd deployer
  • composer update
  • commit changes

Project

Deployment

  • cd deployer
  • dep deploy [stage]

Rollback

... in case of errors after successful deployment

This command set current directory to previous deployment:

  • dep rollback [stage]

Available tasks

  • dep deploy [stage] - create a new release for defined stage

  • dep rollback [stage] - switch to previous release

  • dep migrate[stage] - run all database migrations

  • dep list- list all available commands

work in progress

  • dep duplicateDatabase [stage] - dump contents from source database (live) to destination database (stage) and replace live to stage URLs
  • dep getVersion [stage] - show version of current WordPress installation