tweak app version
This commit is contained in:
parent
eb1f078c0f
commit
8f85301236
|
@ -85,7 +85,7 @@ final class Env(
|
|||
val isStage = config.get[Boolean]("app.stage")
|
||||
val explorerEndpoint = config.get[String]("explorer.endpoint")
|
||||
val tablebaseEndpoint = config.get[String]("explorer.tablebase.endpoint")
|
||||
val appVersion = config.getOptional[String]("app.version") // if desired, generate conf/version.conf properly with command in .github/workflows/server.yml
|
||||
val appVersion = config.getOptional[String]("app.version")
|
||||
|
||||
def net = common.netConfig
|
||||
|
||||
|
|
|
@ -39,10 +39,12 @@ object help {
|
|||
raw(~doc.getHtml("doc.content", resolver))
|
||||
),
|
||||
br,
|
||||
st.section(cls := "box box-pad")(
|
||||
h1("lila version"),
|
||||
pre(env.appVersion)
|
||||
),
|
||||
env.appVersion map { appVersion =>
|
||||
st.section(cls := "box box-pad")(
|
||||
h1("lila version"),
|
||||
pre(appVersion)
|
||||
)
|
||||
},
|
||||
br,
|
||||
st.section(cls := "box")(freeJs())
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue