Skip to content

Commit 860cbe2

Browse files
committed
Docs update.
1 parent 1556c1e commit 860cbe2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,27 @@ Installation
7070
localhost('local')
7171
->set('deploy_path', getcwd())
7272
->set('bin/php', 'php')
73+
//->set('local/bin/php', 'php') // this is auto detected but if you have problems with it you can set it manually. This path must be the same as ``bin/php``.
7374
->set('db_databases', [
7475
'database_default' => [
7576
(new \SourceBroker\DeployerExtendedDatabase\Driver\EnvDriver())->getDatabaseConfig()
7677
]
7778
])
7879

80+
The ``local/bin/php`` is used to run deployer binary at remote. The value for ``local/bin/php`` is
81+
auto detected, based on ``composer.json``, but if you have non standard php binary location you can set it manually.
82+
It should have the same value as ``bin/php`. If you want ``bin/php`` to be also auto detected then you need to
83+
install https://github.com/sourcebroker/deployer-extended and add ``'path' => 'vendor/sourcebroker/deployer-extended/includes/settings/bin_php.php'``
84+
to loader from point 2. Then for standard hosting config you do not need to set either `bin/php` or `local/bin/php`.
85+
7986
6) Add "db_databases" var for all other hosts. For example for live host it can be:
8087
::
8188

8289
host('live')
8390
->setHostname('my-server.example.com')
8491
->setRemoteUser('deploy')
8592
->set('bin/php', '/usr/bin/php82')
93+
//->set('local/bin/php', '/usr/bin/php82') // this is auto detected but if you have problems with it you can set it manually. This path must be the same as ``bin/php``.
8694
->set('deploy_path', '/var/www/myapplication/')
8795
->set('db_databases', [
8896
'database_default' => [

0 commit comments

Comments
 (0)