diff --git a/deploy.php b/deploy.php index 414a643..0aef596 100644 --- a/deploy.php +++ b/deploy.php @@ -21,15 +21,14 @@ host('vasgyuro.tsp') ->user('edvidan') ->forwardAgent() ->set('ng_basehref', '/mtas-tv/') - ->set('ng_target', 'production') - ->set('ng_environment', 'prod') + ->set('ng_configuration', 'production') ->set('env_vars', 'NODE_ENV=production') ->set('deploy_path', '/home/edvidan/applications/mtas-tv'); // Tasks -desc('Prepare release'); -task('deploy:ng-prepare', function() { - runLocally("ng build --base-href={{ng_basehref}} --target={{ng_target}} --environment={{ng_environment}}"); +desc('Build release'); +task('deploy:ng-build', function() { + runLocally("ng build --base-href={{ng_basehref}} --configuration={{ng_configuration}}"); runLocally("tar -cJf dist.tar.xz dist"); }); @@ -52,7 +51,7 @@ task('deploy', [ 'deploy:prepare', 'deploy:lock', 'deploy:release', - 'deploy:ng-prepare', + 'deploy:ng-build', 'deploy:ng-upload', 'deploy:shared', 'deploy:clear_paths',