2 Commits

Author SHA1 Message Date
cfc77b551c ci stuff
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 57s
2024-04-25 05:11:48 +01:00
d83535cbb9 ci stuff 2024-04-25 05:11:17 +01:00
3 changed files with 6 additions and 5 deletions

View File

@ -17,11 +17,11 @@ FROM eclipse-temurin:17.0.11_9-jre-focal
WORKDIR /home/container WORKDIR /home/container
# Copy the built jar file from the builder stage # Copy the built jar file from the builder stage
COPY --from=builder /home/container/target/Paste-Backend.jar . COPY --from=builder /home/container/target/ScoreSaberUtils-Backend.jar .
# Make port 3000 available to the world outside this container # Make port 80 available to the world outside this container
EXPOSE 3000 EXPOSE 80
ENV PORT=3000 ENV PORT=80
# Run the jar file # Run the jar file
CMD java -jar ScoreSaberUtils-Backend.jar -Djava.awt.headless=true CMD java -jar ScoreSaberUtils-Backend.jar -Djava.awt.headless=true

View File

@ -76,6 +76,7 @@ public class ScoreSaberService extends TextWebSocketHandler {
public ScoreSaberAccountToken getAccount(String id) { public ScoreSaberAccountToken getAccount(String id) {
ScoreSaberAccountToken account = WebRequest.getAsEntity(String.format(GET_PLAYER_ENDPOINT, id), ScoreSaberAccountToken.class); ScoreSaberAccountToken account = WebRequest.getAsEntity(String.format(GET_PLAYER_ENDPOINT, id), ScoreSaberAccountToken.class);
if (account == null) { // Check if the account doesn't exist. if (account == null) { // Check if the account doesn't exist.
log.info("Account with id '{}' not found.", id);
throw new ResourceNotFoundException("Account with id '%s' not found.".formatted(id)); throw new ResourceNotFoundException("Account with id '%s' not found.".formatted(id));
} }
return account; return account;

View File

@ -1,6 +1,6 @@
server: server:
address: 0.0.0.0 address: 0.0.0.0
port: 3005 port: 80
servlet: servlet:
context-path: / context-path: /