From e0e56d8cf02e85d151a60b2cdf2c3260bc791a67 Mon Sep 17 00:00:00 2001 From: Jeff Mueller Date: Tue, 17 Sep 2024 15:04:13 -0400 Subject: [PATCH] Base64 decode the ENV file string --- deploy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.php b/deploy.php index 608ebae..d9eb938 100644 --- a/deploy.php +++ b/deploy.php @@ -39,7 +39,7 @@ $stage = input()->getArgument('stage'); } $env_file = ($stage == 'production') ? 'ENV_PROD' : 'ENV_DEV'; - file_put_contents(__DIR__ . '/.env', getenv($env_file)); + file_put_contents(__DIR__ . '/.env', base64_decode(getenv($env_file))); upload('.env', get('deploy_path') . '/shared'); });