Skip to content

Commit

Permalink
feat:蓝盾本地开发实现 TencentBlueKing#9576
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Oct 18, 2023
1 parent e7d7d55 commit c0553b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ class BkServiceInstanceApplicationRunner constructor(

@Suppress("SpreadOperator")
override fun run(args: ApplicationArguments) {
val localRunProperty = System.getProperty("local.run")
val isLocalRun = !localRunProperty.isNullOrBlank() && localRunProperty.toBoolean()
// 当本地运行时为单体服务,不需要存储各服务的实例ip
if (!System.getProperty("local.run").toBoolean()) {
if (!isLocalRun) {
object : Thread() {
override fun run() {
val serviceName = BkServiceUtil.findServiceName()
Expand Down

0 comments on commit c0553b3

Please sign in to comment.