Skip to content

Commit 8b38729

Browse files
committed
Merge pull request ruby#70 from ruby/deployment
Preparation of deployment for neon.ruby-lang.org
2 parents 9c2168f + 3396150 commit 8b38729

File tree

3 files changed

+84
-1
lines changed

3 files changed

+84
-1
lines changed

Capfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
load 'deploy'
2+
require 'bundler/capistrano'
3+
require 'capistrano_colors'
4+
5+
set :default_environment, {
6+
'PATH' => "$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH"
7+
}
8+
9+
set :application, 'www.ruby-lang.org'
10+
set :scm, :git
11+
set :repository, 'git://github.com/ruby/www.ruby-lang.org.git'
12+
set :branch, 'master'
13+
set :deploy_via, :remote_cache
14+
15+
server 'neon.ruby-lang.org', :app, :web, :db, :primary => true
16+
17+
set :user, 'rubylang'
18+
set :deploy_to, defer { "/home/#{user}/#{application}" }
19+
set :use_sudo, false
20+
21+
namespace :deploy do
22+
desc 'generate static sites'
23+
task :generate_static_sites do
24+
run "cd #{latest_release}; LANG=ja_JP.UTF-8 bundle exec rake generate"
25+
end
26+
end
27+
28+
after 'deploy:update', 'deploy:cleanup'
29+
after 'deploy:finalize_update', 'deploy:generate_static_sites'

Gemfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
source 'https://rubygems.org'
1+
source "https://rubygems.org"
22

33
gem 'jekyll'
44
gem 'spidr'
5+
6+
gem 'capistrano'
7+
gem 'capistrano_colors'

Gemfile.lock

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
capistrano (2.14.2)
5+
highline
6+
net-scp (>= 1.0.0)
7+
net-sftp (>= 2.0.0)
8+
net-ssh (>= 2.0.14)
9+
net-ssh-gateway (>= 1.1.0)
10+
capistrano_colors (0.5.5)
11+
classifier (1.3.3)
12+
fast-stemmer (>= 1.0.0)
13+
directory_watcher (1.5.1)
14+
fast-stemmer (1.0.2)
15+
highline (1.6.16)
16+
jekyll (0.12.1)
17+
classifier (~> 1.3)
18+
directory_watcher (~> 1.1)
19+
kramdown (~> 0.14)
20+
liquid (~> 2.3)
21+
maruku (~> 0.5)
22+
pygments.rb (~> 0.3.2)
23+
kramdown (0.14.2)
24+
liquid (2.5.0)
25+
maruku (0.6.1)
26+
syntax (>= 1.0.0)
27+
net-scp (1.1.0)
28+
net-ssh (>= 2.6.5)
29+
net-sftp (2.1.1)
30+
net-ssh (>= 2.6.5)
31+
net-ssh (2.6.6)
32+
net-ssh-gateway (1.2.0)
33+
net-ssh (>= 2.6.5)
34+
nokogiri (1.5.9)
35+
posix-spawn (0.3.6)
36+
pygments.rb (0.3.7)
37+
posix-spawn (~> 0.3.6)
38+
yajl-ruby (~> 1.1.0)
39+
spidr (0.4.1)
40+
nokogiri (~> 1.3)
41+
syntax (1.0.0)
42+
yajl-ruby (1.1.0)
43+
44+
PLATFORMS
45+
ruby
46+
47+
DEPENDENCIES
48+
capistrano
49+
capistrano_colors
50+
jekyll
51+
spidr

0 commit comments

Comments
 (0)