Make charts from the command line.
Setup the vm:
vagrant up
Setup config files:
ln -s cassandra.example config/development/cassandra
ln -s postgres.example config/development/postgres
ln -s cassandra.example config/test/cassandra
ln -s postgres.example config/test/postgres
ln -s config/development/cassandra .chartrc
Setup cassandra:
chart-console -q < db/cassandra/setup.cql # one-time
mkdir -p tmp/db/cassandra
bundle exec ruby -rerb -e 'puts ERB.new(STDIN.read, nil, "<>").result' < db/cassandra/tables.cql.erb > tmp/db/cassandra/tables.cql
chart-console -q -c config/development/cassandra < tmp/db/cassandra/tables.cql
chart-console -q -c config/test/cassandra < tmp/db/cassandra/tables.cql
Setup postgres:
mkdir -p tmp/db/postgres
bundle exec ruby -rerb -e 'puts ERB.new(STDIN.read, nil, "<>").result' < db/postgres/tables.sql.erb > tmp/db/postgres/tables.sql
chart-console -q -c config/development/postgres < tmp/db/postgres/tables.sql
chart-console -q -c config/test/postgres < tmp/db/postgres/tables.sql