Skip to content

Commit

Permalink
update dockercompose file and fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Sep 3, 2024
1 parent 3ce6724 commit 21de97c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 3 additions & 1 deletion backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ USING DOCKER
- Run `docker compose up`
- You have to restart after every code change `docker compose restart spring`
- Get the logs with `docker compose logs -f spring`
!IMPORTANT!
<br>

***!IMPORTANT!***
- If after the first start the backend is not reachable, restart the backend container with `docker compose restart spring`
- if any permission issues occur, delete all of the following folders
- .angular
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
public class ClientConfigController {

private final ClientConfigService configService;
private static final Logger logger = LoggerFactory.getLogger(ClientConfigController.class);

public ClientConfigController(ClientConfigService configService) {
this.configService = configService;
Expand All @@ -29,11 +28,6 @@ public ResponseEntity<ClientConfigDto> getConfig() {
@RequestMapping(value = "/**/{[path:[^\\.]*}")
public String redirect(HttpServletRequest request) {
String path = request.getRequestURI();

logger.debug("----------------------");
logger.debug("Forwarding request to: " + path);
logger.debug("----------------------");

// Serve static resources or paths containing a dot directly
if (path.startsWith("/assets/") || path.contains(".")) {
return "forward:" + path;
Expand Down
1 change: 1 addition & 0 deletions docker/local-prod/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
build:
context: ./..
dockerfile: Dockerfile
restart: always
ports:
- 8080:8080
environment:
Expand Down

0 comments on commit 21de97c

Please sign in to comment.