* prod deploy
This commit is contained in:
parent
8aa0828701
commit
1a357f4121
20
angular.json
Normal file → Executable file
20
angular.json
Normal file → Executable 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
25
deploy.php
Normal file → Executable 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
2
src/environments/environment.prod.ts
Normal file → Executable 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/'
|
||||
};
|
||||
|
||||
5
src/environments/environment.stg.ts
Executable file
5
src/environments/environment.stg.ts
Executable 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/'
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user