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
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 |
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
--- | |
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 |