This commit is contained in:
parent
f33a8c8bfe
commit
f6568cc8fc
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -57,7 +57,7 @@ pipeline {
|
||||
sshagent([env.JENKINS_SSH_CREDENTIAL_ID]) {
|
||||
script {
|
||||
// 현재 Nginx가 바라보고 있는 포트를 배포 서버에서 가져옴
|
||||
def nginxConfPath = "/etc/nginx/conf.d/svelte_app_upstream.conf" // Nginx 설정 파일 경로
|
||||
def nginxConfPath = "/etc/nginx/sites-available/frovide.conf" // Nginx 설정 파일 경로
|
||||
def currentActivePortOutput = sh(script: "ssh ${env.DEPLOY_USER}@${env.DEPLOY_HOST} 'grep -oP \"server 127.0.0.1:\\\\K[0-9]+\" ${nginxConfPath} | head -n 1'", returnStdout: true).trim()
|
||||
|
||||
if (currentActivePortOutput == "") {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user