Commit d8802671 authored by 赵啸非's avatar 赵啸非

重新设置配置文件

parent 198e4faf
...@@ -315,9 +315,7 @@ ...@@ -315,9 +315,7 @@
<plugin> <plugin>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>3.3.0</version> <version>3.3.0</version>
<configuration>
<skipAssembly>${skipDeploy}</skipAssembly>
</configuration>
<executions> <executions>
<execution> <execution>
<id>make-assembly</id> <id>make-assembly</id>
...@@ -341,6 +339,7 @@ ...@@ -341,6 +339,7 @@
<goal>single</goal> <goal>single</goal>
</goals> </goals>
<configuration> <configuration>
<skipAssembly>${skipDeploy}</skipAssembly>
<finalName>${project.artifactId}-ui</finalName> <finalName>${project.artifactId}-ui</finalName>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
<descriptors> <descriptors>
......
#!/bin/sh #!/bin/sh
RETVAL=$? RETVAL=$?
SHELL_NAME=$0 SHELL_NAME="deploy"
BASEDIR=$(dirname $0) BASEDIR=$(dirname $0)
BASEDIR=$( ( BASEDIR=$( (
cd "$BASEDIR" cd "$BASEDIR"
...@@ -8,8 +8,8 @@ BASEDIR=$( ( ...@@ -8,8 +8,8 @@ BASEDIR=$( (
)) ))
LOCK_FILE="/tmp/deploy.lock" LOCK_FILE="/tmp/deploy.lock"
# 时间变量 # 时间变量
LOG_DATE='date "+%Y-%m-%d"' CDATE=$(date "+%Y-%m-%d")
LOG_TIME='date "+%H-%M-%S"' CTIME=$(date "+%H:%M:%S")
PUBLISH_PATH="@profiles.publish.path@" PUBLISH_PATH="@profiles.publish.path@"
PROJECT_NAME="@project.artifactId@" PROJECT_NAME="@project.artifactId@"
IP="@profiles.server.ip@" IP="@profiles.server.ip@"
...@@ -103,7 +103,7 @@ build_nginx() { ...@@ -103,7 +103,7 @@ build_nginx() {
index index.html index.htm; index index.html index.htm;
} }
location ${NGINX_SERVER_PATH} { location ${NGINX_SERVER_PATH}/ {
proxy_pass http://${IP}:${PORT}; proxy_pass http://${IP}:${PORT};
proxy_set_header Host \$host; proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr; proxy_set_header X-Real-IP \$remote_addr;
......
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