OXID-Deployer/README.md

52 Zeilen
1.5 KiB
Markdown

2024-10-25 15:32:17 +02:00
# Deployer recipe for OXID 6.5.x + 7.x
This project uses [Deployer](https://deployer.org/) for scripted installation
## Preparation
2024-10-18 16:46:34 +02:00
To setup the customer repository, see [provisioning](provisioning.md).
### Server setup
Install Composer.
Clone the repository into a separate directory (`deployer` for example) on your server and checkout this branch.
2024-10-25 11:17:56 +02:00
Run `composer install` in it.
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.
2024-10-18 16:46:34 +02:00
Change project settings in the `inventory.yml`.
Create a deploy key (if it's not exist). Set it in the repository settings.
2024-10-18 16:46:34 +02:00
Commit changed files.
### Update Deployer
- `cd deployer`
- `composer update`
2024-10-25 11:23:34 +02:00
- commit changes
## Project
### Deployment
- `cd deployer`
2024-10-17 08:55:37 +02:00
- `dep deploy [stage]`
### Rollback
... in case of errors after successful deployment
This command set `current` directory to previous deployment:
2024-10-17 08:55:37 +02:00
- `dep rollback [stage]`
2024-10-25 11:23:34 +02:00
## Other available tasks
2024-10-25 10:29:42 +02:00
- dep `shop:getVersion` [stage] - show version of current OXID installation
2024-10-29 11:44:46 +01:00
- dep `shop:cloneDatabase` [stage] - dump contents from source to destination database
2024-10-25 10:29:42 +02:00
- dep `shop:runMigration` [stage] - run all database migrations
2024-10-18 16:46:34 +02:00
- dep `setup:createDbConfig` [stage] - generate database configuration file
2024-10-29 11:44:46 +01:00
- dep `list` - list all available commands
- dep `releases` - lists all releases of the selected host
- dep `run` - run any command in the current release of the selected host (e.g. `dep run 'echo {{bin/composer}}'` for full Composer command)