Skip to content

Commit

Permalink
add composer config for getting private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jxjj committed Oct 14, 2024
1 parent da6a302 commit 72816e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@
// artisan:migrate
after('artisan:migrate', 'artisan:queue:restart');

task('composer:private', function() {
cd('{{release_path}}');
run('source .env && /swadm/var/www/html/.dep/composer.phar config "http-basic.nova.laravel.com" "$NOVA_USERNAME" "$NOVA_LICENSE_KEY"');
});

before('deploy:vendors', 'composer:private');

// deploy:publish
// - deploy:symlink
// - deploy:unlock
Expand Down

0 comments on commit 72816e8

Please sign in to comment.