diff --git a/angular.json b/angular.json old mode 100644 new mode 100755 index 9ca6f10..cba4463 --- a/angular.json +++ b/angular.json @@ -45,7 +45,25 @@ "with": "src/environments/environment.prod.ts" } ] + }, + "staging": { + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "extractCss": true, + "namedChunks": false, + "aot": true, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.stg.ts" + } + ] } + } }, "serve": { @@ -135,4 +153,4 @@ "prefix": "app" } } -} \ No newline at end of file +} diff --git a/deploy.php b/deploy.php old mode 100644 new mode 100755 index 0aef596..dff1df0 --- a/deploy.php +++ b/deploy.php @@ -15,15 +15,24 @@ set('writable_dirs', []); set('keep_releases', 3); set('default_stage', 'production'); -// Servers +// Servers - mtas : esekivws5222a.rnd.ki.sw.ericsson.se +host('mtas') + ->stage('production') + ->user('edvidan') + ->forwardAgent() + ->set('ng_basehref', '/mtas/') + ->set('ng_configuration', 'production') + ->set('env_vars', 'NODE_ENV=production') + ->set('deploy_path', '/proj/webdocs/mtoolbox/mtastv/frontend'); + host('vasgyuro.tsp') - ->stage('production') - ->user('edvidan') - ->forwardAgent() - ->set('ng_basehref', '/mtas-tv/') - ->set('ng_configuration', 'production') - ->set('env_vars', 'NODE_ENV=production') - ->set('deploy_path', '/home/edvidan/applications/mtas-tv'); + ->stage('staging') + ->user('edvidan') + ->forwardAgent() + ->set('ng_basehref', '/mtas-tv/') + ->set('ng_configuration', 'staging') + ->set('env_vars', 'NODE_ENV=production') + ->set('deploy_path', '/home/edvidan/applications/mtas-tv'); // Tasks desc('Build release'); diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts old mode 100644 new mode 100755 index 16be19b..fe96514 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,5 +1,5 @@ export const environment = { production: true, - apiUrl: 'http://ttt-api.tsp.eth.ericsson.se/mtastv-api', + apiUrl: 'https://mtoolbox.rnd.ki.sw.ericsson.se/mtastv/api/current/public', commitTrackerApiUrl: 'https://mtas-trex.rnd.ki.sw.ericsson.se:8080/committracker/api/' }; diff --git a/src/environments/environment.stg.ts b/src/environments/environment.stg.ts new file mode 100755 index 0000000..16be19b --- /dev/null +++ b/src/environments/environment.stg.ts @@ -0,0 +1,5 @@ +export const environment = { + production: true, + apiUrl: 'http://ttt-api.tsp.eth.ericsson.se/mtastv-api', + commitTrackerApiUrl: 'https://mtas-trex.rnd.ki.sw.ericsson.se:8080/committracker/api/' +};