Skip to content

Commit ad4aee8

Browse files
committed
added deploy task of production
1 parent 3b6d951 commit ad4aee8

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

config/deploy.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44

55
set :domain, 'neon.ruby-lang.org'
66
set :user, 'rubylang'
7-
set :deploy_to, "/home/#{user}/www.ruby-lang.org"
7+
set :deploy_to, "/home/#{user}/staging.ruby-lang.org"
88
set :repository, 'https://github.com/ruby/www.ruby-lang.org.git'
99
set :branch, 'master'
1010

11+
task :production do
12+
set :deploy_to, "/home/#{user}/www.ruby-lang.org"
13+
end
14+
1115
task :environment do
1216
invoke :'rbenv:load'
1317
end
@@ -25,3 +29,13 @@
2529
invoke :generate_static_sites
2630
end
2731
end
32+
33+
desc "Deploys the current version to the server in production environment."
34+
task :"deploy:production" => :production do
35+
invoke :deploy
36+
end
37+
38+
desc "Sets up a site in production environment."
39+
task :"setup:production" => :production do
40+
invoke :setup
41+
end

0 commit comments

Comments
 (0)