mirror of
https://github.com/JasonHHouse/gaps.git
synced 2025-12-21 10:40:25 -06:00
Fixing start.sh to not show errors
This commit is contained in:
@@ -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
10
pom.xml
@@ -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>
|
||||
|
||||
6
start.sh
6
start.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user