Fix .env updates for double quotations (#259)

This commit is contained in:
Saeed Vaziry
2024-07-27 17:43:46 +02:00
committed by GitHub
parent 9473d198e1
commit ed8965b92b
8 changed files with 79 additions and 14 deletions

View File

@ -179,10 +179,10 @@ public function test_update_env_file(): void
'server' => $this->server,
'site' => $this->site,
]), [
'env' => 'APP_ENV=production',
'env' => 'APP_ENV="production"',
])->assertSessionDoesntHaveErrors();
SSH::assertExecutedContains('echo "APP_ENV=production" | tee /home/vito/'.$this->site->domain.'/.env');
SSH::assertFileUploaded('/home/vito/'.$this->site->domain.'/.env', 'APP_ENV="production"');
}
public function test_git_hook_deployment(): void