Skip to content

Commit

Permalink
Merge pull request #82 from snac-cooperative/jnm/laravel-deploy
Browse files Browse the repository at this point in the history
Base64 decode the ENV file string
  • Loading branch information
jeffmueller-st authored Sep 17, 2024
2 parents c590e3e + e0e56d8 commit 3823f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});

Expand Down

0 comments on commit 3823f9c

Please sign in to comment.