tomcat deployment context.xml
This commit is contained in:
parent
e090e1530d
commit
0667357bf2
7
pom.xml
7
pom.xml
@ -37,7 +37,6 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||||
<version>3.3.4</version>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -68,7 +67,7 @@
|
|||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<finalName>${artifactId}</finalName>
|
<finalName>${project.artifactId}</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
@ -82,11 +81,11 @@
|
|||||||
<goal>exec</goal>
|
<goal>exec</goal>
|
||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<executable>./scp.sh</executable>
|
<executable>/usr/bin/scp</executable>
|
||||||
<arguments>
|
<arguments>
|
||||||
<argument>-P</argument>
|
<argument>-P</argument>
|
||||||
<argument>2222</argument>
|
<argument>2222</argument>
|
||||||
<argument>${project.build.directory}/${artifactId}.war</argument>
|
<argument>${project.build.directory}/${project.artifactId}.war</argument>
|
||||||
<argument>root@app.ph87.de:/srv/app.ph87.de/tomcat/webapps/</argument>
|
<argument>root@app.ph87.de:/srv/app.ph87.de/tomcat/webapps/</argument>
|
||||||
</arguments>
|
</arguments>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
11
scp.sh
11
scp.sh
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo -n "Upload to server [yes|NO]? "
|
|
||||||
read -r answer
|
|
||||||
|
|
||||||
if [ "$answer" == "yes" ]; then
|
|
||||||
echo -n "Uploading... "
|
|
||||||
scp "$@" && echo "DONE"
|
|
||||||
else
|
|
||||||
echo "NOT uploading!"
|
|
||||||
fi
|
|
||||||
4
src/main/webapp/META-INF/context.xml
Normal file
4
src/main/webapp/META-INF/context.xml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Context docBase="Data">
|
||||||
|
<Environment name="spring.config.location" value="classpath:/,file:./,file:./properties/Data.properties" type="java.lang.String"/>
|
||||||
|
</Context>
|
||||||
Loading…
Reference in New Issue
Block a user