forked from redis/try.redis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCapfile
More file actions
36 lines (28 loc) · 771 Bytes
/
Capfile
File metadata and controls
36 lines (28 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
load 'deploy'
require 'bundler/capistrano'
default_run_options[:pty] = true
# be sure to change these
set :user, 'tryredis'
set :domain, 'rediger.net'
set :port, 222
set :application, 'try.redis'
set :scm, 'git'
set :repository, 'git://github.com/badboy/try.redis.git'
set :deploy_to, "/home/tryredis/#{application}"
set :deploy_via, :remote_cache
set :keep_releases, 3
set :branch, 'master'
set :use_sudo, false
server domain, :app, :web
load 'capistrano/puma'
namespace :deploy do
task :wait do
sleep 3
end
desc "Send a GET request to the homepage to check everything is working"
task :surf do
puts "GET request: %s" % run_locally("curl -si http://try.redis.io/ | head -1")
end
end
after "deploy", "deploy:wait"
after "deploy", "deploy:surf"