2019-07-02 08:05:15 +03:00
|
|
|
# Installation
|
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
To install Deployer, run next command in your project dir:
|
|
|
|
```
|
|
|
|
composer require --dev deployer/deployer
|
2019-07-02 08:05:15 +03:00
|
|
|
```
|
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
To initialize deployer in you project run:
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-10 23:20:32 +01:00
|
|
|
```
|
2022-03-18 23:49:29 +01:00
|
|
|
vendor/bin/deployer.phar init
|
2019-07-02 08:05:15 +03:00
|
|
|
```
|
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
:::tip Bash integration
|
|
|
|
Add next alias to your _.bashrc_ file:
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
```bash
|
|
|
|
alias dep='vendor/bin/deployer.phar'
|
2021-11-10 23:20:32 +01:00
|
|
|
```
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
Deployer comes with autocomplete support for task names, options, and hosts.
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
Run the next command to add bash completion support:
|
|
|
|
```
|
|
|
|
dep completion bash > /etc/bash_completion.d/deployer
|
2019-07-02 08:05:15 +03:00
|
|
|
```
|
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
Make sure what your _.bashrc_ file includes generated file in some way.
|
2021-11-07 20:50:55 +01:00
|
|
|
:::
|