* deploy config fixed
This commit is contained in:
parent
ea05a47086
commit
a15cb298a0
11
deploy.php
11
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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user