diff --git a/Jenkinsfile b/Jenkinsfile index d026ec6..8b2e11b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 == "") {