Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
f1d92d5a
Commit
f1d92d5a
authored
Nov 02, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件
parent
baefc3ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
52 deletions
+12
-52
sample-form-manager/pom.xml
sample-form-manager/pom.xml
+5
-47
sample-form-manager/src/main/bin/deploy.sh
sample-form-manager/src/main/bin/deploy.sh
+7
-5
No files found.
sample-form-manager/pom.xml
View file @
f1d92d5a
...
@@ -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>
...
...
sample-form-manager/src/main/bin/deploy.sh
View file @
f1d92d5a
...
@@ -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/;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment