You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,19 +70,27 @@ Installation
70
70
localhost('local')
71
71
->set('deploy_path', getcwd())
72
72
->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``.
73
74
->set('db_databases', [
74
75
'database_default' => [
75
76
(new \SourceBroker\DeployerExtendedDatabase\Driver\EnvDriver())->getDatabaseConfig()
76
77
]
77
78
])
78
79
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
+
79
86
6) Add "db_databases" var for all other hosts. For example for live host it can be:
80
87
::
81
88
82
89
host('live')
83
90
->setHostname('my-server.example.com')
84
91
->setRemoteUser('deploy')
85
92
->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``.
0 commit comments