We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc87c94 commit 54ec6edCopy full SHA for 54ec6ed
lib/mix/tasks/demo/tcp.ex
@@ -3,8 +3,12 @@ defmodule Mix.Tasks.Demo.Tcp do
3
@requirements ["loadpaths", "app.config", "app.start"]
4
5
use Mix.Task
6
+ require Logger
7
8
def run(_args) do
- IO.puts("Hey look running the TCP service!")
9
+ Logger.info("Starting up the TCP handler...")
10
+ ChorexExamples.start_server()
11
+ Logger.info("Started; connect in another terminal window with `nc localhost 4242`")
12
+ IO.gets("Press 'ENTER' to quit")
13
end
14
0 commit comments