Skip to content

Instantly share code, notes, and snippets.

@Linicks
Linicks / gist:29267d895efffdbc644c
Created May 26, 2015 18:35
Proper Elixir Control Structure ?
def authors(cd) do
#Connect to the database.
conn = RethinkDB.connect([host: "10.0.0.30", port: 28015])
#Create ore Destroy the authors table.
if cd == "create" do
q = table_create("authors")
|> run conn
end
---
log:
- output: stderr
level: info # warn for prod.
format: plain
p2p:
public_address: "/ip4/"Your IP ADDRESS"/tcp/3000"
max_connections: 1024
gossip_interval: 5s
max_unreachable_nodes_to_connect_per_event: 2