Skip to content

Commit

Permalink
Add missing information to UPGRADE.md (#3546)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszGasior authored Mar 24, 2023
1 parent 78dd230 commit ba355de
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
task(...)
->select('stage=prod');
```
2. Don't use string-based task definition, it's not available anymore. Don't forget to set correct working directory.
```php
# from
task('deploy:npm-install', 'npm clean-install');

# to
task('deploy:npm-install', function() {
cd('{{release_path}}');
run('npm clean-install');
});
```
6. Third party recipes now live inside main Deployer repo in _contrib_:
```php
require 'contrib/rsync.php';
Expand Down Expand Up @@ -73,6 +84,10 @@
```php
set('writable_recursive', true);
```
17. `.git` directory is not present in release directory anymore. The previous behavior can be restored with:
```php
set('update_code_strategy', 'clone');
```

### Step 2: Deploy

Expand Down

0 comments on commit ba355de

Please sign in to comment.