автосборка
This commit is contained in:
parent
d8da4eab04
commit
eb4fc57b49
13
JenkinsBuildProd
Normal file
13
JenkinsBuildProd
Normal file
@ -0,0 +1,13 @@
|
||||
node('Natrium'){
|
||||
stage('get new version to repo') {
|
||||
checkout scm
|
||||
}
|
||||
|
||||
stage('Install dependencies') {
|
||||
sh 'npm install'
|
||||
}
|
||||
|
||||
stage('build project') {
|
||||
sh 'npm run build-prod:lithium'
|
||||
}
|
||||
}
|
||||
13
JenkinsBuildTest
Normal file
13
JenkinsBuildTest
Normal file
@ -0,0 +1,13 @@
|
||||
node('Lithium'){
|
||||
stage('get new version to repo') {
|
||||
checkout scm
|
||||
}
|
||||
|
||||
stage('Install dependencies') {
|
||||
sh 'npm install'
|
||||
}
|
||||
|
||||
stage('build project') {
|
||||
sh 'npm run build-test:lithium'
|
||||
}
|
||||
}
|
||||
@ -5,6 +5,8 @@
|
||||
"ng": "ng",
|
||||
"start": "ng serve --proxy-config proxy.confi.json",
|
||||
"build": "ng build",
|
||||
"build-test:lithium": "ng build --output-path=/var/www/html/selfdelivery-pitsburg-test.mydatahosting.ru",
|
||||
"build-prod:lithium": "ng build --output-path=/var/www/html/selfdelivery-pitsburg.mydatahosting.ru",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test"
|
||||
},
|
||||
|
||||
11
proxy.confi.json
Normal file
11
proxy.confi.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"/api": {
|
||||
"target": "http://selfdelivery-pitsburg-test.mydatahosting.ru/api",
|
||||
"secure": false,
|
||||
"pathRewrite": {
|
||||
"^/api": ""
|
||||
},
|
||||
"changeOrigin": true,
|
||||
"logLevel": "debug"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user