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:
|
2022-09-06 09:17:58 +02:00
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
```
|
|
|
|
composer require --dev deployer/deployer
|
2019-07-02 08:05:15 +03:00
|
|
|
```
|
|
|
|
|
2022-08-26 06:35:54 -05:00
|
|
|
To initialize deployer in your project run:
|
2019-07-02 08:05:15 +03:00
|
|
|
|
2021-11-10 23:20:32 +01:00
|
|
|
```
|
2022-07-24 13:26:08 +02:00
|
|
|
vendor/bin/dep 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
|
2022-07-24 13:26:08 +02:00
|
|
|
alias dep='vendor/bin/dep'
|
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:
|
2022-09-06 09:17:58 +02:00
|
|
|
|
2022-03-18 23:49:29 +01:00
|
|
|
```
|
|
|
|
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
|
|
|
:::
|