* prod deploy

This commit is contained in:
Dávid Danyi 2018-10-04 15:43:32 +02:00
parent 8aa0828701
commit 1a357f4121
4 changed files with 42 additions and 10 deletions

20
angular.json Normal file → Executable file
View File

@ -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"
}
}
}
}

25
deploy.php Normal file → Executable file
View File

@ -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');

2
src/environments/environment.prod.ts Normal file → Executable file
View File

@ -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/'
};

View File

@ -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/'
};