I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis
onto
the box and here's how I did it and some things to look
out for.
To install:
namespace :deploy do | |
task :restart do | |
stop | |
sleep 1 | |
start | |
end | |
task :start do | |
targets = find_servers_for_task(current_task) |
set :deploy_to, "/usr/share/my-app" | |
namespace :play do | |
task :setup do | |
run "mkdir -p #{deploy_to}" | |
upload "my-app/start.sh", "#{deploy_to}/start.sh", :mode => '755', :via => :scp | |
upload "my-app/stop.sh", "#{deploy_to}/stop.sh", :mode => '755', :via => :scp | |
end | |
task :deploy do |
var thrift = require('thrift'); | |
var test = require('./gen-nodejs/test.js'), | |
ttypes = require('./gen-nodejs/test_types'); | |
var connection = thrift.createConnection('localhost', 9090), | |
client = thrift.createClient(test, connection); | |
connection.on('error', function(err) { | |
console.error(err); |
From Wikipedia: Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.
Built with D3.js.