Skip to content

Commit

Permalink
Remove artisan:create_key task
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Nov 26, 2024
1 parent 725730d commit 306f93e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion recipe/deploy/env.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
});
8 changes: 0 additions & 8 deletions recipe/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 306f93e

Please sign in to comment.