Skip to content

Commit 54ec6ed

Browse files
committed
Make TCP demo work
1 parent dc87c94 commit 54ec6ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/mix/tasks/demo/tcp.ex

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ defmodule Mix.Tasks.Demo.Tcp do
33
@requirements ["loadpaths", "app.config", "app.start"]
44

55
use Mix.Task
6+
require Logger
67

78
def run(_args) do
8-
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")
913
end
1014
end

0 commit comments

Comments
 (0)