Last active
August 4, 2017 15:24
-
-
Save dimart/6b79897eaa7ea3080b401c5f5bd3576b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run -p 5150:5150 scalacenter/scastie-sbt-runner:bb732e5b7e99d977ec80a44567f1751e6b5e1fd1-dirty | |
... | |
[WARN] [08/04/2017 15:21:30.749] [New I/O boss #3] [NettyTransport(akka://Runner)] Remote connection to null failed with java.net.ConnectException: Connection refused: /127.0.0.1:15000 | |
[WARN] [08/04/2017 15:21:30.752] [Runner-akka.remote.default-remote-dispatcher-7] [akka.tcp://Runner@127.0.0.1:5150/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FWeb%40127.0.0.1%3A15000-2] Association with remote system [akka.tcp://Web@127.0.0.1:15000] has failed, address is now gated for [5000] ms. Reason: [Association failed with [akka.tcp://Web@127.0.0.1:15000]] Caused by: [Connection refused: /127.0.0.1:15000] | |
[INFO] [08/04/2017 15:21:30.758] [Runner-akka.actor.default-dispatcher-3] [akka.tcp://Web@127.0.0.1:15000/temp/$a] Message [com.olegych.scastie.api.SbtPong$] from Actor[akka://Runner/user/SbtActor#5867794] to Actor[akka.tcp://Web@127.0.0.1:15000/temp/$a] was not delivered. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. | |
[INFO] [08/04/2017 15:21:35.164] [Runner-akka.actor.default-dispatcher-3] [akka.tcp://Web@127.0.0.1:15000/temp/$b] Message [com.olegych.scastie.api.SbtPong$] from Actor[akka://Runner/user/SbtActor#5867794] to Actor[akka.tcp://Web@127.0.0.1:15000/temp/$b] was not delivered. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. | |
... | |
------------------------------------------------------------------------------------------------------------------------------------- | |
$ sbt server/reStart | |
... | |
server Starting com.olegych.scastie.web.ServerMain.main() | |
server akka tcp config | |
server 127.0.0.1 | |
server 15000 | |
[success] Total time: 12 s, completed Aug 4, 2017 5:21:29 PM | |
> server akka.event.slf4j.Slf4jLogger:92 | Slf4jLogger started | |
server akka.remote.Remoting:83 | Starting remoting | |
server akka.remote.Remoting:83 | Remoting started; listening on addresses :[akka.tcp://Web@127.0.0.1:15000] | |
server akka.remote.Remoting:83 | Remoting now listens on addresses: [akka.tcp://Web@127.0.0.1:15000] | |
server c.o.scastie.balancer.DispatchActor:83 | connecting to: 127.0.0.1 [5150] | |
server ServerMain:90 | Scastie started (port: 9000) | |
... | |
------------------------------------------------------------------------------------------------------------------------------------- | |
diff --git a/sbt-runner/src/main/resources/application.conf b/sbt-runner/src/main/resources/application.conf | |
index 241e1fc..36543b7 100644 | |
--- a/sbt-runner/src/main/resources/application.conf | |
+++ b/sbt-runner/src/main/resources/application.conf | |
@@ -23,10 +23,13 @@ akka { | |
netty.tcp { | |
hostname = ${com.olegych.scastie.sbt.hostname} | |
port = ${com.olegych.scastie.sbt.akka-port} | |
+ bind-hostname = "0.0.0.0" | |
+ bind-port = 5150 | |
+ bind-port = ${?RUNNER_PORT} | |
message-frame-size = 30000000b | |
send-buffer-size = 30000000b | |
receive-buffer-size = 30000000b | |
maximum-frame-size = 30000000b | |
} | |
} | |
-} | |
\ No newline at end of file | |
+} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment