tomcat deployment context.xml
This commit is contained in:
parent
e090e1530d
commit
0667357bf2
7
pom.xml
7
pom.xml
@ -37,7 +37,6 @@
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-thymeleaf</artifactId>
|
||||
<version>3.3.4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@ -68,7 +67,7 @@
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<finalName>${artifactId}</finalName>
|
||||
<finalName>${project.artifactId}</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
@ -82,11 +81,11 @@
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<executable>./scp.sh</executable>
|
||||
<executable>/usr/bin/scp</executable>
|
||||
<arguments>
|
||||
<argument>-P</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>
|
||||
</arguments>
|
||||
</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