Fixing start.sh to not show errors

This commit is contained in:
Jason House
2022-01-05 20:01:12 -05:00
parent 003f9e4eef
commit 6a7ebbb27e
3 changed files with 6 additions and 12 deletions

View File

@@ -1,6 +1,8 @@
#!/bin/bash
set -e
npm ci
./minify
npm run test
mvn clean install
docker build -f Dockerfile -t "housewrecker/gaps:alpha" .
docker push "housewrecker/gaps:alpha"

10
pom.xml
View File

@@ -251,15 +251,7 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.5.2</version>
<dependencies>
<!-- overwrite dependency on spotbugs if you want to specify the version of spotbugs -->
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>4.5.2</version>
</dependency>
</dependencies>
<version>4.5.2.0</version>
</plugin>
</plugins>
</build>

View File

@@ -3,14 +3,14 @@ echo "Enable SSL: $ENABLE_SSL"
echo "Enable Login: $ENABLE_LOGIN"
echo "Base URL: $BASE_URL"
echo "Jar File: $JAR_FILE"
if [ $ENABLE_SSL == true ]; then
if [ $ENABLE_LOGIN == true ]; then
if [ "$ENABLE_SSL" = true ]; then
if [ "$ENABLE_LOGIN" = true ]; then
java -Xms256m -Xmx2048m -jar -Dspring.profiles.active=ssl -Dserver.servlet.context-path=$BASE_URL $JAR_FILE
else
java -Xms256m -Xmx2048m -jar -Dspring.profiles.active=ssl-no-login -Dserver.servlet.context-path=$BASE_URL $JAR_FILE
fi
else
if [ $ENABLE_LOGIN == true ]; then
if [ "$ENABLE_LOGIN" = true ]; then
java -Xms256m -Xmx2048m -jar -Dspring.profiles.active=no-ssl -Dserver.servlet.context-path=$BASE_URL $JAR_FILE
else
java -Xms256m -Xmx2048m -jar -Dspring.profiles.active=no-ssl-no-login -Dserver.servlet.context-path=$BASE_URL $JAR_FILE