sasa1977 / elixir-in-action

Code samples for Elixir in Action book
947 stars 199 forks source link

database cannot replicated via Elixir 1.9.2 version #19

Open Raymond0331 opened 4 years ago

Raymond0331 commented 4 years ago

Erlang/OTP 22 [erts-10.5.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]

In this elixir version does not work. Try to start two nodes in my macbook, by the following steps: node1 : iex --sname node1@localhost -S mix node2: iex --erl "-todo port 5555" --sname node2@localhost -S mix in other terminal test add entries: curl -d "" "http://localhost:5454/add_entry?list=bob&date=2018-12-19&title=Movies" curl "http://localhost:5555/entries?list=bob&date=2018-12-19" the curl command return empty, and the local folder in node2 is empty too.