Commit 68984380 authored by Kunkka王辉's avatar Kunkka王辉 😲

feat: 变量处理

parent ccff10e2
#部署的env全部,用来追加到 项目的.env 文件用来支持每个服务之间的调用
SERVICE_BaseMicros=$HOST:1234 #缺省
SERVICE_MarketMicros=$HOST:1234 #缺省
SERVICE_FlowMicros=$HOST:$GALAXY_FLOW_MICROS_API_HTTP_PORT
SERVICE_UserMicros=$HOST:$GALAXY_USER_MICROS_API_HTTP_PORT
SERVICE_FlowEngineMicros= #java
SERVICE_ServerSiteMicros=$HOST:$GALAXY_SERVER_SITE_API_HTTP_PORT
SERVICE_NoticeMicros= #java
SERVICE_PromotionMicros=#缺省
SERVICE_MemberMicros=#缺省
SERVICE_PresaleMicros=$HOST:$GALAXY_PRESALE_MICROS_API_HTTP_PORT
SERVICE_BizPlatform= #java
SERVICE_CrmClient= #java
SERVICE_common-server=$HOST:$GALAXY_COMMON_SERVER_API_HTTP_PORT
SERVICE_workflow-server=$HOST:$GALAXY_WORKFLOW_API_HTTP_PORT
SERVICE_data-center=$HOST:1234 #缺省
\ No newline at end of file
......@@ -78,7 +78,7 @@ cat <<EOF >/etc/nginx/conf.d/crm-client.conf
server {
listen $OLD_CRM_CLIENT_HTTP_PORT;
server_name localhost;
root /app/www/CRM-Client;
root /app/www/crm-client;
index index.php index.html;
location ^~ /backend/ {
......@@ -125,7 +125,7 @@ cat <<EOF >/etc/nginx/conf.d/crm-userinfo.conf
server {
listen $OLD_CRM_USER_HTTP_PORT;
server_name localhost;
root /app/www/User-Information-System;
root /app/www/user-information-system;
index index.php index.html;
location ^~ /backend/ {
proxy_pass http://$HOST:$GALAXY_FLOW_MICROS_API_HTTP_PORT;
......@@ -384,3 +384,22 @@ server {
}
}
EOF
cat <<EOF >/app/www/.env-for-add
#部署的env全部,用来追加到 项目的.env 文件用来支持每个服务之间的调用
#用于替换掉hostFile的配置
SERVICE_BaseMicros=$HOST:1234 #缺省
SERVICE_MarketMicros=$HOST:1234 #缺省
SERVICE_FlowMicros=$HOST:$GALAXY_FLOW_MICROS_API_HTTP_PORT
SERVICE_UserMicros=$HOST:$GALAXY_USER_MICROS_API_HTTP_PORT
SERVICE_FlowEngineMicros=$JAVA_FLOWENGINE_URI
SERVICE_ServerSiteMicros=$HOST:$GALAXY_SERVER_SITE_API_HTTP_PORT
SERVICE_NoticeMicros= $JAVA_NOTICE_URI
SERVICE_PromotionMicros=$HOST:1234#缺省
SERVICE_MemberMicros=$HOST:1234#缺省
SERVICE_PresaleMicros=$HOST:$GALAXY_PRESALE_MICROS_API_HTTP_PORT
SERVICE_BizPlatform= $JAVA_BIZ_PLATFORM_URI
SERVICE_CrmClient= $JAVA_CLIENT_URI
SERVICE_common-server=$HOST:$GALAXY_COMMON_SERVER_API_HTTP_PORT
SERVICE_workflow-server=$HOST:$GALAXY_WORKFLOW_API_HTTP_PORT
SERVICE_data-center=$HOST:1234 #缺省
EOF
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment