File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,14 @@ object Main extends ServerApp with PullRequestService {
9
9
10
10
val user = sys.env(" USER" )
11
11
val token = sys.env(" TOKEN" )
12
+ val port = sys.env(" PORT" ).toInt
12
13
13
14
/** Services mounted to the server */
14
15
final val services = prService
15
16
16
17
override def server (args : List [String ]): Task [Server ] = {
17
18
BlazeBuilder
18
- .bindHttp(8080 , " localhost " )
19
+ .bindHttp(port , " 0.0.0.0 " )
19
20
.mountService(services, " /api" )
20
21
.start
21
22
}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import complete.DefaultParsers._
4
4
import java .io .{ RandomAccessFile , File }
5
5
import java .nio .channels .FileLock
6
6
import scala .reflect .io .Path
7
+ import sbtassembly .AssemblyKeys .assembly
7
8
8
9
import org .scalajs .sbtplugin .ScalaJSPlugin
9
10
import org .scalajs .sbtplugin .ScalaJSPlugin .autoImport ._
@@ -173,6 +174,10 @@ object DottyBuild extends Build {
173
174
settings(
174
175
resourceDirectory in Test := baseDirectory.value / " test" / " resources" ,
175
176
177
+ // specify main and ignore tests when assembling
178
+ mainClass in assembly := Some (" dotty.tools.bot.Main" ),
179
+ test in assembly := {},
180
+
176
181
libraryDependencies ++= {
177
182
val circeVersion = " 0.7.0"
178
183
val http4sVersion = " 0.15.3"
Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
8
8
addSbtPlugin(" org.scalastyle" %% " scalastyle-sbt-plugin" % " 0.8.0" )
9
9
10
10
addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.8" )
11
+
12
+ addSbtPlugin(" com.eed3si9n" % " sbt-assembly" % " 0.14.3" )
You can’t perform that action at this time.
0 commit comments