Skip to content

Commit

Permalink
Merge pull request #74 from sumocoders/change-deploy-script-for-new-v…
Browse files Browse the repository at this point in the history
…ersion

Remove the asset build steps from our default deploy.php
  • Loading branch information
Sander authored Mar 14, 2022
2 parents 105f653 + e1f010a commit a80f974
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,39 +74,8 @@
return '{{bin/php}} {{shared_folder}}/composer.phar';
});

// Limit the number of releases that should be kept
set('keep_releases', 3);


/*****************
* Task sections *
*****************/
// Build tasks
task(
'build:assets:npm',
function () {
$nvmPath = trim(shell_exec('echo $HOME/.nvm/nvm.sh'));

if (file_exists($nvmPath)) {
runLocally('. ' . $nvmPath . ' && nvm use && nvm exec npm run build');
} else {
runLocally('npm run build');
}
}
)
->desc('Run the build script which will build our needed assets.');

// Upload tasks
task(
'upload:assets',
function () {
upload(__DIR__ . '/public/build', '{{release_path}}/public');
}
)
->desc('Uploads the assets')
->addBefore('build:assets:npm');
after('deploy:update_code', 'upload:assets');

/**********************
* Flow configuration *
**********************/
Expand Down

0 comments on commit a80f974

Please sign in to comment.