make path to js absolute
This commit is contained in:
parent
05c564f86b
commit
ad3c06dac7
|
@ -93,6 +93,7 @@ final class CoreEnv private (application: Application, val settings: Settings) {
|
|||
settings = settings)
|
||||
|
||||
lazy val game = new lila.game.GameEnv(
|
||||
app = app,
|
||||
settings = settings,
|
||||
mongodb = mongodb.apply _)
|
||||
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
package lila
|
||||
package game
|
||||
|
||||
import play.api.Application
|
||||
import com.mongodb.casbah.MongoCollection
|
||||
|
||||
import core.Settings
|
||||
|
||||
final class GameEnv(
|
||||
app: Application,
|
||||
settings: Settings,
|
||||
mongodb: String ⇒ MongoCollection) {
|
||||
|
||||
|
@ -34,5 +36,5 @@ final class GameEnv(
|
|||
|
||||
lazy val rewind = new Rewind
|
||||
|
||||
lazy val gameJs = new GameJs(settings.GameJsPath)
|
||||
lazy val gameJs = new GameJs(app.path.getCanonicalPath + "/" + settings.GameJsPath)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue