diff --git a/doc/default-deployer.md b/doc/default-deployer.md index 899f8f8..c72b0c0 100644 --- a/doc/default-deployer.md +++ b/doc/default-deployer.md @@ -37,6 +37,19 @@ public function configure() } ``` +You can optionaly define a directory by deployed server as : +```php +public function configure() +{ + return $this->getConfigBuilder() + ->server('user@hostname', ['app'], [ + 'deploy_dir' => '/var/www/my-project', + ]) + // ... + ; +} +``` + Then, the following directory structure is created on each remote server: ``` diff --git a/src/Configuration/DefaultConfiguration.php b/src/Configuration/DefaultConfiguration.php index 1abe5ac..e8df1ca 100644 --- a/src/Configuration/DefaultConfiguration.php +++ b/src/Configuration/DefaultConfiguration.php @@ -361,7 +361,7 @@ public function resetOpCacheFor(string $homepageUrl): self protected function getReservedServerProperties(): array { - return [Property::bin_dir, Property::config_dir, Property::console_bin, Property::cache_dir, Property::deploy_dir, Property::log_dir, Property::src_dir, Property::templates_dir, Property::web_dir]; + return [Property::bin_dir, Property::config_dir, Property::console_bin, Property::cache_dir, Property::log_dir, Property::src_dir, Property::templates_dir, Property::web_dir]; } private function setDefaultConfiguration(int $symfonyMajorVersion, $symfonyMinorVersion): void diff --git a/src/Deployer/DefaultDeployer.php b/src/Deployer/DefaultDeployer.php index fa28adc..4f5d5ce 100644 --- a/src/Deployer/DefaultDeployer.php +++ b/src/Deployer/DefaultDeployer.php @@ -187,7 +187,7 @@ private function initializeServerOptions(): void $appServers = $this->getServers()->findByRoles([Server::ROLE_APP]); foreach ($appServers as $server) { $this->log(sprintf('