Skip to content

Commit

Permalink
uninterrupted deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
LminWoo99 committed Sep 30, 2023
1 parent 033b7e6 commit 5d0a01d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ done

echo "> 스위칭"
sleep 10
~/etc/server/PlantBackend/scripts/switch.sh
/etc/server/PlantBackend/scripts/switch.sh
23 changes: 23 additions & 0 deletions src/main/java/Plant/PlantProject/util/LoggingController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package Plant.PlantProject.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class LoggingController {
@Value("${logging-module.version}")
private String version;

@GetMapping("")
public String version() {
return String.format("Project Version : %s", version);
}

@GetMapping("/health")
public String checkHealth() {
return "healthy";
}
}

0 comments on commit 5d0a01d

Please sign in to comment.