diff --git a/recipe/deploy/env.php b/recipe/deploy/env.php index 1c7f2eeb2..bf8369cef 100644 --- a/recipe/deploy/env.php +++ b/recipe/deploy/env.php @@ -9,6 +9,5 @@ cd('{{release_or_current_path}}'); if (test('[ ! -e .env ] && [ -f {{dotenv_example}} ]')) { run('cp {{dotenv_example}} .env'); - set('new_deployment', true); } }); diff --git a/recipe/laravel.php b/recipe/laravel.php index 230ab8289..721d3684d 100644 --- a/recipe/laravel.php +++ b/recipe/laravel.php @@ -101,13 +101,6 @@ function laravel_version_compare($version, $comparator) desc('Sets the application key'); task('artisan:key:generate', artisan('key:generate')); -desc('Generates the application key for new deployments'); -task('artisan:create_key', function () { - if (has('new_deployment')) { - invoke('artisan:key:generate'); - } -})->hidden(); - desc('Creates the encryption keys for API authentication'); task('artisan:passport:keys', artisan('passport:keys')); @@ -282,7 +275,6 @@ function laravel_version_compare($version, $comparator) task('deploy', [ 'deploy:prepare', 'deploy:vendors', - 'artisan:create_key', 'artisan:storage:link', 'artisan:config:cache', 'artisan:route:cache',