Note that there are some explanatory texts on larger screens.

plurals
  1. POSetup logging/config for production with deb file and SBT
    text
    copied!<p>I'm search for the best way way to set up my logging/config in production within my deb file using the <a href="https://github.com/sbt/sbt-native-packager" rel="nofollow">sbt-native-packager</a>.</p> <p>a.) I want to copy my <code>reference.conf</code> and <code>logback.xml</code> from my code repository to <code>/etc/my-app/reference.conf</code> or <code>/etc/my-app/logback.xml</code>. <strong>I guess its somehow possible with <code>linuxPackageMappings</code> but i could'nt find a example yet and I'm still struggling to get how SBT and the plugings work together.</strong></p> <p>b.) I need to tell my jvm that i should use this config and this logback config when started via the created upstart - <strong>how do I pass parameters from the build.scala to the jvm-runscript</strong> </p> <p>this is my current project val:</p> <pre><code>lazy val root = Project(id = appName, base = file("."), settings = JavaServerAppPackaging.settings ++ packageSettings ++ allSettings ++ Project.defaultSettings) lazy val allSettings = Seq( resolvers += "Typesafe Releases" at "http://repo.typesafe.com/typesafe/releases", resolvers += "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/", libraryDependencies ++= dependencies) lazy val packageSettings = packageArchetype.java_server ++ Seq( bashScriptExtraDefines := Seq("aha"), version := appVersion, packageSummary := appName, packageDescription := appName, maintainer := appAuthor, debianPackageDependencies in Debian ++= Seq("openjdk-7-jre-headless")) </code></pre> <p>thanks</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload