make asset packaging conditional
parent
81438830e3
commit
1acbccc088
|
@ -11,4 +11,7 @@
|
|||
# Yes it needs tons of memory. Go for 4g if you have them.
|
||||
export JAVA_OPTS="-Xms2048m -Xmx2560m -XX:ReservedCodeCacheSize=128m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -XX:+ExitOnOutOfMemoryError -Dkamon.auto-start=true"
|
||||
|
||||
# For development without nginx.
|
||||
export SERVE_ASSETS=1
|
||||
|
||||
sbt -Dhttp.port=9663 "$@"
|
||||
|
|
|
@ -48,7 +48,7 @@ TwirlKeys.templateImports ++= Seq(
|
|||
"lila.common.String.html._"
|
||||
)
|
||||
resourceDirectory in Assets := (sourceDirectory in Compile).value / "assets"
|
||||
unmanagedResourceDirectories in Assets += baseDirectory( _ / "public" ).value
|
||||
unmanagedResourceDirectories in Assets ++= (if (scala.sys.env.get("SERVE_ASSETS").exists(_ == "1")) Seq(baseDirectory.value / "public") else Nil)
|
||||
|
||||
scalariformPreferences := scalariformPrefs(scalariformPreferences.value)
|
||||
excludeFilter in scalariformFormat := "*Routes*"
|
||||
|
|
Loading…
Reference in New Issue