Commit 66b5b4ef authored by Liang Ding's avatar Liang Ding

🎨 非生产环境不同步 GH 仓库

parent 3f7f03f8
...@@ -53,7 +53,7 @@ import java.util.stream.Collectors; ...@@ -53,7 +53,7 @@ import java.util.stream.Collectors;
* Export service. * Export service.
* *
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.0.4, Mar 27, 2019 * @version 1.1.0.5, Mar 30, 2019
* @since 2.5.0 * @since 2.5.0
*/ */
@Service @Service
...@@ -162,6 +162,10 @@ public class ExportService { ...@@ -162,6 +162,10 @@ public class ExportService {
return; return;
} }
if (Latkes.RuntimeMode.PRODUCTION != Latkes.getRuntimeMode()) {
return;
}
final JSONObject mds = exportHexoMDs(); final JSONObject mds = exportHexoMDs();
final List<JSONObject> posts = (List<JSONObject>) mds.opt("posts"); final List<JSONObject> posts = (List<JSONObject>) mds.opt("posts");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment