Skip to content

Commit

Permalink
test a
Browse files Browse the repository at this point in the history
  • Loading branch information
maulayyacyber committed Oct 2, 2024
1 parent 62fce5b commit f3e1760
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions Envoy.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
clone_repository
run_composer
create_cache_directory
run_deploy_scripts
link_env_file
generate_app_key
handle_storage_directory
run_migrations
run_optimize
update_symlinks
delete_git_metadata
clean_old_releases
Expand Down Expand Up @@ -50,13 +51,9 @@
chmod -R 775 {{ $new_release_dir }}/storage
@endtask

@task('run_deploy_scripts')
@task('link_env_file')
echo 'Linking .env file'
ln -nfs {{ $app_dir }}/.env {{ $new_release_dir }}/.env

echo 'Running deployment scripts'
cd {{ $new_release_dir }}
php artisan optimize:clear
@endtask

@task('generate_app_key')
Expand Down Expand Up @@ -85,6 +82,18 @@
chmod -R 775 {{ $app_dir }}/storage
@endtask

@task('run_migrations')
echo 'Running migrations'
cd {{ $new_release_dir }}
php artisan migrate --force
@endtask

@task('run_optimize')
echo 'Running optimization commands'
cd {{ $new_release_dir }}
php artisan optimize:clear
@endtask

@task('run_migrations')
echo 'Creating cache table if not exists and running migrations'
cd {{ $new_release_dir }}
Expand Down

0 comments on commit f3e1760

Please sign in to comment.