Skip to content

Instantly share code, notes, and snippets.

@stephenkey
stephenkey / sunspot.cap
Last active September 2, 2015 16:30 — forked from muscardinus/sunspot.cap
sunspot tasks for Capistrano 3
namespace :deploy do
before :updated, :setup_solr_data_dir do
on roles(:app) do
unless test "[ -d #{shared_path}/solr/data ]"
execute :mkdir, "-p #{shared_path}/solr/data"
end
end
end
end

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

.fb {
fill: #3b5998;
}
.tw {
fill: #1ab1e8;
}
.gp {
fill: #efaf25;