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

修改配置文件

parent baefc3ee
...@@ -228,7 +228,7 @@ ...@@ -228,7 +228,7 @@
</goals> </goals>
<configuration> <configuration>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
<outputDirectory>${project.parent.basedir}/dist/${project.parent.artifactId}/ <outputDirectory>${project.parent.basedir}/dist/${project.artifactId}/
</outputDirectory> </outputDirectory>
<resources> <resources>
<resource> <resource>
...@@ -244,48 +244,6 @@ ...@@ -244,48 +244,6 @@
</executions> </executions>
</plugin> </plugin>
<!-- <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-bin</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<encoding>UTF-8</encoding>
<outputDirectory>${project.parent.basedir}/dist/${project.parent.artifactId}/bin</outputDirectory>
<resources>
<resource>
<directory>src/main/bin/</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-db</id>
<phase>package</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<skip>${skipDeploy}</skip>
<encoding>UTF-8</encoding>
<outputDirectory>${project.parent.basedir}/dist/${project.parent.artifactId}/db</outputDirectory>
<resources>
<resource>
<directory>./db/</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>-->
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId> <artifactId>exec-maven-plugin</artifactId>
...@@ -342,12 +300,12 @@ ...@@ -342,12 +300,12 @@
<goal>single</goal> <goal>single</goal>
</goals> </goals>
<configuration> <configuration>
<finalName>sample-form-platform</finalName> <finalName>${project.artifactId}</finalName>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
<descriptors> <descriptors>
<descriptor>../assembly/assembly.xml</descriptor> <descriptor>../assembly/assembly.xml</descriptor>
</descriptors> </descriptors>
<outputDirectory>${project.parent.basedir}/dist/sample-form-platform</outputDirectory> <outputDirectory>${project.parent.basedir}/dist/${project.artifactId}</outputDirectory>
</configuration> </configuration>
</execution> </execution>
<execution> <execution>
...@@ -357,12 +315,12 @@ ...@@ -357,12 +315,12 @@
<goal>single</goal> <goal>single</goal>
</goals> </goals>
<configuration> <configuration>
<finalName>sample-form-platform-ui</finalName> <finalName>${project.artifactId}-ui</finalName>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
<descriptors> <descriptors>
<descriptor>../assembly/assembly-manager-ui.xml</descriptor> <descriptor>../assembly/assembly-manager-ui.xml</descriptor>
</descriptors> </descriptors>
<outputDirectory>${project.parent.basedir}/dist/sample-form-platform</outputDirectory> <outputDirectory>${project.parent.basedir}/dist/${project.artifactId}</outputDirectory>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>
......
...@@ -19,8 +19,10 @@ SERVICE_PATH="/usr/lib/systemd/system" ...@@ -19,8 +19,10 @@ SERVICE_PATH="/usr/lib/systemd/system"
JAVA_HOME="/usr/local/java/jdk1.8" JAVA_HOME="/usr/local/java/jdk1.8"
NGINX_CONF_PATH="/etc/nginx/conf.d/" NGINX_CONF_PATH="/etc/nginx/conf.d/"
NGINX_PORT="11091"#nginx服务对外访问端口 #nginx服务对外访问端口
NGINX_SERVER_PATH="/m/"#nginx服务转发后端服务路径 NGINX_PORT="11091"
#nginx服务转发后端服务路径
NGINX_SERVER_PATH="/m/"
PROJECT_EXECPATH="${PUBLISH_PATH}/${PROJECT_NAME}" PROJECT_EXECPATH="${PUBLISH_PATH}/${PROJECT_NAME}"
PROJECT_UI_EXECPATH="${PUBLISH_PATH}/${PROJECT_NAME}-ui" PROJECT_UI_EXECPATH="${PUBLISH_PATH}/${PROJECT_NAME}-ui"
PROJECT_FILENAME="${PROJECT_NAME}.tar.gz" PROJECT_FILENAME="${PROJECT_NAME}.tar.gz"
...@@ -102,9 +104,9 @@ build_nginx() { ...@@ -102,9 +104,9 @@ build_nginx() {
location ${NGINX_SERVER_PATH} { location ${NGINX_SERVER_PATH} {
proxy_pass http://127.0.0.1:${PORT}; proxy_pass http://127.0.0.1:${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;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
} }
location /file/fileupload/ { location /file/fileupload/ {
alias /mortals/app/data/file/fileupload/; alias /mortals/app/data/file/fileupload/;
......
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