From 3e48aa747d81a7e081b1578660b0f5470f549d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Wed, 1 Sep 2021 15:28:02 +0200 Subject: [PATCH] Add .htaccess and .htpasswd to shared files in staging env --- deploy.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deploy.php b/deploy.php index 40d040bd..738b8059 100644 --- a/deploy.php +++ b/deploy.php @@ -56,7 +56,8 @@ $rsyncOptions = [ 'timeout' => 300, ]; -host('185.237.67.190') +host('production') + ->hostname('185.237.67.190') ->stage('production') ->user('p546128') ->forwardAgent() @@ -70,7 +71,11 @@ host('185.237.67.190') ->set('cachetool_args', '--web=SymfonyHttpClient --web-path={{release_path}}/public/ --web-url=https://www.ep-reisen.de') ; -host('185.237.67.190') +$sharedFilesStaging = get('shared_files'); +$sharedFilesStaging[] = '{{typo3_webroot}}/.htpasswd'; + +host('staging') + ->hostname('185.237.67.190') ->stage('staging') ->user('p546128') ->forwardAgent()