diff -r 2d14f02ba3bd -r fa0f19a74283 base/src/sqwl/cms/Server.scala --- a/base/src/sqwl/cms/Server.scala Tue Nov 24 13:15:49 2020 +0100 +++ b/base/src/sqwl/cms/Server.scala Tue Dec 29 16:46:47 2020 +0100 @@ -24,7 +24,6 @@ import scala.collection.immutable import scala.concurrent.ExecutionContextExecutor -import scala.io.StdIn trait Server extends App with Service[Nothing] with config with UrlScheme { @@ -54,7 +53,7 @@ } ~ pathPrefix(asArticle) { article => pathEnd { complete(asHtml(ViewArticle(article))) - } ~ getFromDirectory(article.assets.toString) + } ~ getFromDirectory(content.articleAssets(article).toString) } ~ path(asCategory) { category => complete(asHtml(ViewCategory(category))) } ~ path(TAG / asTag) { tag => @@ -72,10 +71,5 @@ } Http().newServerAt(http.interface, http.port).bind(routes) - if (run.mode == "devel") { - system.log.info("Click `Enter` to close application...") - StdIn.readLine() - system.terminate() - } }