배포 유틸리티 실행(runDeployment.sh/.bat)
runDeployment 명령행 도구를 사용하는 경우, 가능한 모든 매개변수를 전체적으로 제시하고 runDeployment 도구 자체와 같은 위치에서 사용 가능한 deployment.properties 파일에서 제공하는 설정을 사용하여 명령행에서 특정 서버 그룹에 대한 대화식 채널을 배포할 수 있습니다. 명령행에서 대화식 채널 배포를 실행하는 기능은 OffersBySQL 기능을 사용하고 있을 때 특히 유용합니다. 예를 들어, Campaign 일괄처리 플로우차트를 주기적으로 실행하도록 구성할 수도 있습니다. 플로우차트 실행이 완료되면 이 명령행 도구를 사용하여 OffersBySQL 테이블에서 오퍼 배포를 초기화하는 트리거가 호출될 수 있습니다.
설명
Interact 디자인 시간 서버의 다음 위치에 자동으로 설치된 runDeployment 명령행 도구를 찾을 수 있습니다.
Interact_home/interactDT/tools/deployment/runDeployment.sh(또는 Windows 서버의 runDeployment.bat)
이 명령으로 전달되는 유일한 인수는 대화식 채널/런타임 서버 그룹 조합을 배포하는 데 필요한 모든 가능한 매개변수를 설명하는 deployment.properties라는 파일의 위치입니다. 샘플 파일이 참조용으로 제공됩니다.
*
runDeployment 유틸리티를 사용하기 전, 우선 서버에서 Java 런타임 환경의 위치를 제공하도록 텍스트 편집기로 편집해야 합니다. 예를 들어, Interact_home/jre 또는 Platform_home/jre 디렉토리 중 하나에 유틸리티에서 사용하도록 할 Java 런타임이 있는 경우, 두 디렉토리 중 하나를 경로로 지정할 수 있습니다. 또는 이 릴리스의 IBM 제품에서 사용할 수 있도록 지원되는 Java 런타임 환경에 경로를 제공할 수도 있습니다.
보안(SSL) 환경에서 runDeployment 유틸리티 사용
Interact 서버에서 보안이 사용으로 설정되어 SSL 포트를 통해 연결할 때 runDeployment 유틸리티를 사용하려면 다음과 같이 신뢰 저장소 Java 특성을 추가해야 합니다.
1.
대화식 채널 배포를 위해 deployment.properties 파일을 편집하고 있을 때는 이 예에서처럼 보안 SSL URL을 사용하도록 deploymentURL 특성을 수정하십시오.
deploymentURL=https://<HOST>.<DOMAIN>:<PORT>/Campaign/interact/InvokeDeploymentServlet
2.
${JAVA_HOME}으로 시작하는 행에 다음 인수를 추가하도록 텍스트 편집기를 사용하여 runDeployment.sh 또는 runDeployment.bat 스크립트를 편집하십시오.
-Djavax.net.ssl.trustStore=<TrustStorePath>
예를 들어, 신뢰 저장소 인수를 추가한 후 이 행은 다음과 같이 보일 수 있습니다.
${JAVA_HOME}/bin/java -Djavax.net.ssl.trustStore=<TrustStorePath> 
-cp ${CLASSPATH}com.unicacorp.Campaign.interact.deployment.tools.
InvokeDeploymentClient $1
<TrustStorePath>를 실제 SSL 신뢰 저장소의 경로로 바꾸십시오.
유틸리티 실행
Java 런타임 환경을 제공하도록 유틸리티를 편집하고 환경에 일치하도록 deployment.properties 파일의 복사본을 사용자 정의한 후, 다음 명령으로 유틸리티를 실행할 수 있습니다.
Interact_home/interactDT/tools/deployment/runDeployment.sh deployment.properties
Interact_homeInteract 디자인 시간 설치의 실제 값으로 바꾸고, deployment.properties를 이 배포를 위해 사용자 정의한 특성 파일의 실제 경로와 이름으로 바꾸십시오.
샘플 deployment.properties 파일
샘플 deployment.properties 파일에는 자체 환경과 일치시키기 위해 사용자 정의해야 하는 모든 매개변수와 그에 대한 설명이 추가된 목록이 있습니다. 샘플 파일에는 각 매개변수가 무엇인지, 왜 특정 값을 사용자 정의해야 하는지에 대한 설명도 포함됩니다.
###############################################################################
#
# The following properties feed into the InvokeDeploymentClient program.
# The program will look for a deploymentURL setting. The program will post a
# request against that url; all other settings are posted as parameters in
# that request. The program then checks the status of the deployment and
# returns back when the deployment is at a terminal state (or if the
# specified waitTime has been reached).
#
# the output of the program will be of this format:
# <STATE> : <Misc Detail>
#
# where state can be one of the following:
# ERROR
# RUNNING
# SUCCESS
#
# Misc Detail is data that would normally populate the status message area
# in the deployment gui of the IC summary page. NOTE: HTML tags may exist
# in the Misc Detail
#
###############################################################################

###############################################################################
# deploymentURL: url to the InvokeDeployment servlet that resides in Interact
# Design time. should be in the following format:
# http://dt_host:port/Campaign/interact/InvokeDeploymentServlet
###############################################################################
deploymentURL=http://localhost:7001/Campaign/interact/InvokeDeploymentServlet

###############################################################################
# dtLogin: this is the login that you would use to login to the Design Time if
# you had wanted to deploy the IC via the deployment gui inside the IC summary
# page.
###############################################################################
dtLogin=asm_admin

###############################################################################
# dtPW: this is the PW that goes along with the dtLogin
###############################################################################
dtPW=

###############################################################################
# icName: this is the name of the Interactive Channel that you want to deploy
###############################################################################
icName=ic1

###############################################################################
# partition: this is the name of the partition
###############################################################################
partition=partition1

###############################################################################
# request: this is the type of request that you want this tool to execute
# currently, there two behaviors. If the value is "deploy", then the deployment
# will be executed. All other values would cause the tool to simply return the
# status of the last deployment of the specified IC.
###############################################################################
request=deploy

###############################################################################
# serverGroup: this is the name of the server group that you would like to
# deploy the IC.
###############################################################################
serverGroup=defaultServerGroup

###############################################################################
# serverGroupType: this will indicate whether or not this deployment is going
# against production server group or a test server group. 1 denotes production
# 2 denotes test.
###############################################################################
serverGroupType=1

###############################################################################
# rtLogin: this is the account used to authenticate against the server group
# that you are deploying to.
###############################################################################
rtLogin=asm_admin

###############################################################################
# rtPW: this is the password associated to the rtLogin
###############################################################################
rtPW=

###############################################################################
# waitTime: Once the tool submits the deployment request, the tool will check
# the status of the deployment. If the deployment has not completed (or
# failed), then the tool will continue to poll the system for the status until
# a completed state has been reached, OR until the specified waitTime (in
# seconds) has been reached.
###############################################################################
waitTime=5

###############################################################################
# pollTime: If the status of a deployment is still in running state, then the
# tool will continue to check the status. It will sleep in between status
# checks a number of seconds based on the pollTime setting .
###############################################################################
pollTime=3

###############################################################################
# global: Setting to false will make the tool NOT deploy the global settings.
# Non-availability of the property will still deploy the global settings.
###############################################################################
global=true