Skip to content

Preparation of deployment for neon.ruby-lang.org #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 30, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Capfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
load 'deploy'
require 'bundler/capistrano'
require 'capistrano_colors'

set :default_environment, {
'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
}

set :application, 'www.ruby-lang.org'
set :scm, :git
set :repository, 'git://github.com/ruby/www.ruby-lang.org.git'
set :branch, 'master'
set :deploy_via, :remote_cache

server 'neon.ruby-lang.org', :app, :web, :db, :primary => true

set :user, 'rubylang'
set :deploy_to, defer { "/home/#{user}/#{application}" }
set :use_sudo, false

namespace :deploy do
desc 'generate static sites'
task :generate_static_sites do
run "cd #{latest_release}; LANG=ja_JP.UTF-8 bundle exec rake generate"
end
end

after 'deploy:update', 'deploy:cleanup'
after 'deploy:finalize_update', 'deploy:generate_static_sites'
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
source 'https://rubygems.org'
source "https://rubygems.org"

gem 'jekyll'
gem 'spidr'

gem 'capistrano'
gem 'capistrano_colors'
51 changes: 51 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
GEM
remote: https://rubygems.org/
specs:
capistrano (2.14.2)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
capistrano_colors (0.5.5)
classifier (1.3.3)
fast-stemmer (>= 1.0.0)
directory_watcher (1.5.1)
fast-stemmer (1.0.2)
highline (1.6.16)
jekyll (0.12.1)
classifier (~> 1.3)
directory_watcher (~> 1.1)
kramdown (~> 0.14)
liquid (~> 2.3)
maruku (~> 0.5)
pygments.rb (~> 0.3.2)
kramdown (0.14.2)
liquid (2.5.0)
maruku (0.6.1)
syntax (>= 1.0.0)
net-scp (1.1.0)
net-ssh (>= 2.6.5)
net-sftp (2.1.1)
net-ssh (>= 2.6.5)
net-ssh (2.6.6)
net-ssh-gateway (1.2.0)
net-ssh (>= 2.6.5)
nokogiri (1.5.9)
posix-spawn (0.3.6)
pygments.rb (0.3.7)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.1.0)
spidr (0.4.1)
nokogiri (~> 1.3)
syntax (1.0.0)
yajl-ruby (1.1.0)

PLATFORMS
ruby

DEPENDENCIES
capistrano
capistrano_colors
jekyll
spidr