diff --git a/deploy.php b/deploy.php index 362cdbb..e616c52 100644 --- a/deploy.php +++ b/deploy.php @@ -77,33 +77,31 @@ $rsyncOptions = [ 'timeout' => 300, ]; -// Shared by all hosts. The deploy path only differs by the host alias. -set('deploy_path', '/usr/home/myepsf/public_html/{{alias}}'); +// Shared by all hosts. set('bin/php', '/usr/bin/php'); set('http_user', 'myepsf'); // Must stay here: contrib/rsync.php sets the same key, but its __DIR__ is the vendor dir. set('rsync_src', __DIR__); set('rsync', $rsyncOptions); -// The web adapter fetches its probe file back through the live docroot, so --web-path must -// be the current symlink, never {{release_or_current_path}}: that one resolves (and memoizes) -// to the new release dir, which the FPM worker's realpath cache does not see yet. -set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url={{web_url}}'); host('prod') ->setHostname('dedi10193.your-server.de') + ->setDeployPath('/usr/www/users/myepsf/prod') ->setRemoteUser('myepsf') ->setForwardAgent(true) ->setSshMultiplexing(true) - ->set('web_url', 'https://my.ep-reisen.de') + ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://my.ep-reisen.de') ; host('staging') ->setHostname('dedi10193.your-server.de') + ->setDeployPath('/usr/www/users/myepsf/staging') ->setRemoteUser('myepsf') ->setForwardAgent(true) ->setSshMultiplexing(true) - ->set('web_url', 'https://my.ep-reisen.net') + ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{current_path}}/public/ --web-url=https://my.ep-reisen.net --web-basic-auth=myep:staging') ->add('shared_files', [ + 'public/.htaccess', 'public/.htpasswd', ]) ;