From f7d072de10412f2ab8faf6606dbf8256b6c5a189 Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Fri, 19 Dec 2014 15:03:40 +0900 Subject: [PATCH 1/2] YobiUpdate: Do not check update so frequently By the default, Yobi checks whether new software update is available every a millisecond. This is a bug of the configuration library to interpret 1d as 1ms. See https://github.com/typesafehub/config/issues/117 for detail of the bug. --- conf/application.conf.default | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/application.conf.default b/conf/application.conf.default index 96d4055e6..62fd1f3df 100644 --- a/conf/application.conf.default +++ b/conf/application.conf.default @@ -141,7 +141,7 @@ application.notification.draft-time = 30s # Software Update # ~~~~~~~~~~~~~~~ # Check for updates of Yobi at this interval if it is grater than 0. -application.update.notification.interval = 1d +application.update.notification.interval = 1h # A url to the git repository for Yobi releases. application.update.repositoryUrl = "http://repo.yobi.io/naver/yobi" # A format to construct the url to latest Yobi release. "%s" is a format From 7a6d6965bed7049ac555f88ae4b71d0c2b160e72 Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Fri, 19 Dec 2014 15:07:37 +0900 Subject: [PATCH 2/2] YobiUpdate: Fix incorrect update site The default update site has changed to repo.yobi.io in application.conf.default since 5a9e026 but it should be also changed in app/models/YobiUpdate.java. --- app/models/YobiUpdate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/YobiUpdate.java b/app/models/YobiUpdate.java index bae9e311f..9eff00af5 100644 --- a/app/models/YobiUpdate.java +++ b/app/models/YobiUpdate.java @@ -43,7 +43,7 @@ public class YobiUpdate { private static final Long UPDATE_NOTIFICATION_INTERVAL_IN_MILLIS = Configuration.root() .getMilliseconds("application.update.notification.interval", 60 * 60 * 1000L); private static final String UPDATE_REPOSITORY_URL = Configuration.root() - .getString("application.update.repositoryUrl", "https://github.com/naver/yobi"); + .getString("application.update.repositoryUrl", "http://repo.yobi.io/naver/yobi"); private static final String RELEASE_URL_FORMAT = Configuration.root() .getString("application.update.releaseUrlFormat", "https://github.com/naver/yobi/releases/tag/v%s");