can setup an OXID eShop from repository
This commit is contained in:
commit
4baeeb58ec
51
README.md
Normal file
51
README.md
Normal file
@ -0,0 +1,51 @@
|
||||
# Usage
|
||||
|
||||
This project uses [Deployer](https://deployer.org/) 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`
|
||||
- `Änderungen committen`
|
||||
|
||||
## Project
|
||||
|
||||
### Deployment
|
||||
|
||||
- `cd deployer`
|
||||
- `dep deploy ...`
|
||||
|
||||
### Rollback
|
||||
|
||||
... in case of errors after successful deployment
|
||||
|
||||
This command set `current` directory to previous deployment:
|
||||
|
||||
- `dep rollback`
|
||||
|
||||
## Available tasks
|
||||
|
||||
* dep `deploy` [stage] - create a new release for defined stage
|
||||
* dep `rollback` [stage] - switch to previous release
|
||||
|
||||
* 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
|
||||
* dep `showUpdates` [stage] - show available updates of the current installation
|
||||
* dep `update` [stage] - run composer update and wordpress update in current release, create new release first
|
||||
* dep `list`- list all available commands
|
||||
|
||||
* dep releases - list all releases of the current stage
|
5
composer.json
Normal file
5
composer.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"require-dev": {
|
||||
"deployer/deployer": "^7.4"
|
||||
}
|
||||
}
|
12
deploy.php
Normal file
12
deploy.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace Deployer;
|
||||
|
||||
require 'recipe/composer.php';
|
||||
|
||||
// Setup
|
||||
|
||||
import(__DIR__. '/inventory.yml');
|
||||
|
||||
// Hooks
|
||||
|
||||
after('deploy:failed', 'deploy:unlock');
|
36
inventory.yml
Normal file
36
inventory.yml
Normal file
@ -0,0 +1,36 @@
|
||||
config:
|
||||
application: my.shop.com
|
||||
keep_releases: 5
|
||||
repository: gitfhfac@git.d3data.de:Customers/my.shop.com.git
|
||||
bin/php: /usr/local/php8.2/bin/php
|
||||
|
||||
.base: &base
|
||||
local: true
|
||||
deploy_path: /home/XXX/{{application}}_{{alias}}
|
||||
shared_files:
|
||||
- .htpasswd
|
||||
- .env # otherwise source/config.inc.php
|
||||
shared_dirs:
|
||||
- source/sitemaps
|
||||
- source/export
|
||||
- source/log
|
||||
- source/import
|
||||
- source/out/downloads
|
||||
- source/out/media
|
||||
- source/out/pictures
|
||||
copy_dirs:
|
||||
- var
|
||||
|
||||
hosts:
|
||||
production:
|
||||
<<: *base
|
||||
roles: production
|
||||
branch: rel_7.0.x
|
||||
|
||||
development:
|
||||
<<: *base
|
||||
roles: development
|
||||
branch: dev_7.1.x
|
||||
composer_args: --dev
|
||||
keep_releases: 1
|
||||
composer_options: --verbose --prefer-dist --no-progress --no-interaction # without no-dev option
|
Loading…
Reference in New Issue
Block a user