Skip to content

Commit

Permalink
Fixed null server
Browse files Browse the repository at this point in the history
  • Loading branch information
IliyanID committed Mar 22, 2023
1 parent b7dbd3d commit 9f47f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Back-End/src/main/java/com/tco/Server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Server()
}

private void configureRestfulApiServer() {
int port = Integer.parseInt( System.getenv("PORT"));
int port = Integer.parseInt( System.getenv("PORT")!=null?System.getenv("PORT"):"-1");
if(!(port > 0)){
port = 3000;
}
Expand Down
2 changes: 1 addition & 1 deletion Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apk add git
RUN apk add maven
RUN apk add openjdk8-jre
RUN npm install -g npm@6.14.15
RUN git clone https://github.com/IliyanID/Lindi-Bracelets.git
RUN git clone https://github.com/IliyanID/Lindi-Bracelets.git && echo "no cache"
RUN cd /Lindi-Bracelets/Front-End && npm install && npm run build
RUN cp -r /Lindi-Bracelets/Front-End/build /Lindi-Bracelets/Back-End/src/main/resources/public
RUN cd /Lindi-Bracelets/Back-End && mvn -q package
Expand Down

0 comments on commit 9f47f40

Please sign in to comment.