pfl 0.7 and config tweaks
parent
3b78d28376
commit
69088915a3
|
@ -28,7 +28,7 @@ final class LilaComponents(ctx: ApplicationLoader.Context)
|
||||||
val mem = Runtime.getRuntime().maxMemory() / 1024 / 1024
|
val mem = Runtime.getRuntime().maxMemory() / 1024 / 1024
|
||||||
val appVersionCommit = ~configuration.getOptional[String]("app.version.commit")
|
val appVersionCommit = ~configuration.getOptional[String]("app.version.commit")
|
||||||
val appVersionDate = ~configuration.getOptional[String]("app.version.date")
|
val appVersionDate = ~configuration.getOptional[String]("app.version.date")
|
||||||
s"lila $appVersionCommit $appVersionDate / java ${java}, memory: ${mem}MB"
|
s"lila ${ctx.environment.mode} $appVersionCommit $appVersionDate / java ${java}, memory: ${mem}MB"
|
||||||
}
|
}
|
||||||
|
|
||||||
import _root_.controllers._
|
import _root_.controllers._
|
||||||
|
|
|
@ -158,7 +158,7 @@ final class Env(
|
||||||
_ <- coach.api.remove(u.id)
|
_ <- coach.api.remove(u.id)
|
||||||
reports <- report.api.processAndGetBySuspect(lila.report.Suspect(u))
|
reports <- report.api.processAndGetBySuspect(lila.report.Suspect(u))
|
||||||
_ <- self ?? mod.logApi.selfCloseAccount(u.id, reports)
|
_ <- self ?? mod.logApi.selfCloseAccount(u.id, reports)
|
||||||
_ <- u.marks.troll ?? relation.api.fetchFollowing(u.id) flatMap {
|
_ <- u.marks.troll ?? relation.api.fetchFollowing(u.id).flatMap {
|
||||||
activity.write.unfollowAll(u, _)
|
activity.write.unfollowAll(u, _)
|
||||||
}
|
}
|
||||||
} yield Bus.publish(lila.hub.actorApi.security.CloseAccount(u.id), "accountClose")
|
} yield Bus.publish(lila.hub.actorApi.security.CloseAccount(u.id), "accountClose")
|
||||||
|
|
|
@ -10,7 +10,6 @@ lazy val root = Project("lila", file("."))
|
||||||
.aggregate(api)
|
.aggregate(api)
|
||||||
.settings(buildSettings)
|
.settings(buildSettings)
|
||||||
|
|
||||||
PlayKeys.playDefaultPort := 9663
|
|
||||||
// shorter prod classpath
|
// shorter prod classpath
|
||||||
scriptClasspath := Seq("*")
|
scriptClasspath := Seq("*")
|
||||||
maintainer := "contact@lichess.org"
|
maintainer := "contact@lichess.org"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
http.port = 9663
|
http.port = 9663
|
||||||
|
https.port = disabled
|
||||||
mongodb {
|
mongodb {
|
||||||
uri = "mongodb://127.0.0.1:27017"
|
uri = "mongodb://127.0.0.1:27017"
|
||||||
mongo-async-driver = ${akka}
|
mongo-async-driver = ${akka}
|
||||||
|
|
|
@ -50,7 +50,7 @@ object Dependencies {
|
||||||
}
|
}
|
||||||
|
|
||||||
object play {
|
object play {
|
||||||
val version = "2.8.2-lila_0.6"
|
val version = "2.8.2-lila_0.7"
|
||||||
val api = "com.typesafe.play" %% "play" % version
|
val api = "com.typesafe.play" %% "play" % version
|
||||||
val json = "com.typesafe.play" %% "play-json" % "2.9.0"
|
val json = "com.typesafe.play" %% "play-json" % "2.9.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
resolvers += Resolver.url("lila-maven-sbt", url("https://raw.githubusercontent.com/ornicar/lila-maven/master"))(Resolver.ivyStylePatterns)
|
resolvers += Resolver.url("lila-maven-sbt", url("https://raw.githubusercontent.com/ornicar/lila-maven/master"))(Resolver.ivyStylePatterns)
|
||||||
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.2-lila_0.6")
|
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.2-lila_0.7")
|
||||||
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
|
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2")
|
||||||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.3")
|
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.4.3")
|
||||||
|
|
Loading…
Reference in New Issue