Skip to content

Commit

Permalink
Update installation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Oct 22, 2024
1 parent 492078b commit ff51d86
Showing 1 changed file with 34 additions and 8 deletions.
42 changes: 34 additions & 8 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# Installation

## Global installation

To install Deployer, run next command in your project dir:

```
composer require --dev deployer/deployer
composer global require deployer/deployer
```

To initialize deployer in your project run:

```
vendor/bin/dep init
phive install deployer
```

:::tip Bash integration
Add next alias to your _.bashrc_ file:
Run in your project to create `deploy.php` file:

```bash
alias dep='vendor/bin/dep'
```
dep init
```

:::tip Autocomplete

Deployer comes with autocomplete support for task names, options, and hosts.

Expand All @@ -28,4 +29,29 @@ dep completion bash > /etc/bash_completion.d/deployer
```

Make sure what your _.bashrc_ file includes generated file in some way.

:::

## Project installation

To install Deployer in your project, run next command in your project dir:

```
composer require --dev deployer/deployer
```

To initialize deployer in your project run:

```
vendor/bin/dep init
```

## Phar download

You can download deployer phar file from [releases](https://github.com/deployphp/deployer/releases) page.

After downloading, you can run it in your project dir:

```
php deployer.phar init
```

0 comments on commit ff51d86

Please sign in to comment.