Skip to content

Commit

Permalink
amended proc and fixed ui issue
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltester committed Jan 28, 2024
1 parent a851749 commit 4f243c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion challenger/Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: java $JAVA_OPTS -cp target/classes:target/dependency/*:target/* uk.co.compendiumdev.challenge.ChallengeMain -model=challengeapi -noshutdown -autocleardown=10 -multiplayer -cloudstorage
web: java $JAVA_OPTS -cp target/classes:target/dependency/*:target/* uk.co.compendiumdev.challenge.ChallengeMain -model=challengeapi -noshutdown -multiplayer -cloudstorage
2 changes: 2 additions & 0 deletions challenger/deploy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ i.e. https://medium.com/@devkosal/switching-java-jdk-versions-on-macos-80bc868e6

For heroku:

NOTE: need to have `heroku plugins:install java` for the `deploy:jar` to be recognised - more info https://devcenter.heroku.com/articles/deploying-executable-jar-files

Deploy the challenger app full jar

- have the deployment page open in case we need to rollback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ private String showPreviousGuids() {
"var guids = localStorage.getItem('challenges-guids') || '';" +
"var guidsArray = guids.match(/\\|([^|]*)\\|/g);" +
"currGuid = getCookie('X-THINGIFIER-DATABASE-NAME');" +
"if(currGuid!='' && !guidsArray.includes(`|${currGuid}|`)){guidsArray.push(`|${currGuid}|`)}" +
"if(currGuid && !guidsArray){guidsArray=[];}" +
"if(currGuid && guidsArray && currGuid!='' && !guidsArray.includes(`|${currGuid}|`)){guidsArray.push(`|${currGuid}|`)}" +
"if(guidsArray!=null && guidsArray.length>0){document.writeln('<p><strong>Previously Used</strong></p>')}" +
"for(guidItem in guidsArray){" +
"var myguid = guidsArray[guidItem].replace(/\\|/g,'');" +
Expand Down
2 changes: 1 addition & 1 deletion challengerAuto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependency>
<groupId>uk.co.compendiumdev.thingifier</groupId>
<artifactId>challenger</artifactId>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.0</version>
<scope>test</scope>
</dependency>

Expand Down

0 comments on commit 4f243c7

Please sign in to comment.