mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
904 B
904 B
Upgrade from 3.x to 4.x
-
Namespace for functions
Add to beginning of deploy.php next line:
use function Deployer\{server, task, run, set, get, add};
If you are using PHP version less than 5.6, you can use this:
namespace Deployer;
-
env()
toset()
/get()
Rename all calls
env($name, $value)
toset($name, $value)
.Rename all rvalue
env($name)
toget($name)
.Rename all
server(...)->env(...)
toserver(...)->set(...)
. -
Writable mode
Deployer v4 use
chgrp
instead of acl. If you want to return to previous mode addset('writable_mode', 'acl');
.
Upgrade from 2.x to 3.x
-
->path('...')
Replace your server paths configuration:
server(...) ->path(...);
to:
server(...) ->env('deploy_path', '...');