* 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')
|
->user('edvidan')
|
||||||
->forwardAgent()
|
->forwardAgent()
|
||||||
->set('ng_basehref', '/mtas-tv/')
|
->set('ng_basehref', '/mtas-tv/')
|
||||||
->set('ng_target', 'production')
|
->set('ng_configuration', 'production')
|
||||||
->set('ng_environment', 'prod')
|
|
||||||
->set('env_vars', 'NODE_ENV=production')
|
->set('env_vars', 'NODE_ENV=production')
|
||||||
->set('deploy_path', '/home/edvidan/applications/mtas-tv');
|
->set('deploy_path', '/home/edvidan/applications/mtas-tv');
|
||||||
|
|
||||||
// Tasks
|
// Tasks
|
||||||
desc('Prepare release');
|
desc('Build release');
|
||||||
task('deploy:ng-prepare', function() {
|
task('deploy:ng-build', function() {
|
||||||
runLocally("ng build --base-href={{ng_basehref}} --target={{ng_target}} --environment={{ng_environment}}");
|
runLocally("ng build --base-href={{ng_basehref}} --configuration={{ng_configuration}}");
|
||||||
runLocally("tar -cJf dist.tar.xz dist");
|
runLocally("tar -cJf dist.tar.xz dist");
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -52,7 +51,7 @@ task('deploy', [
|
|||||||
'deploy:prepare',
|
'deploy:prepare',
|
||||||
'deploy:lock',
|
'deploy:lock',
|
||||||
'deploy:release',
|
'deploy:release',
|
||||||
'deploy:ng-prepare',
|
'deploy:ng-build',
|
||||||
'deploy:ng-upload',
|
'deploy:ng-upload',
|
||||||
'deploy:shared',
|
'deploy:shared',
|
||||||
'deploy:clear_paths',
|
'deploy:clear_paths',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user