tomcat deployment context.xml

This commit is contained in:
Patrick Haßel 2024-10-16 13:16:12 +02:00
parent e090e1530d
commit 0667357bf2
3 changed files with 7 additions and 15 deletions

View File

@ -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
View File

@ -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

View 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>