-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCapfile
More file actions
36 lines (25 loc) · 821 Bytes
/
Capfile
File metadata and controls
36 lines (25 loc) · 821 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"
default_run_options[:pty] = true
# As long as we don't push all the cat photos in this repo, we can be good. I
# like how I can slash and dice repos around with the copy strategy.
set :scm, :none
set :scm_verbose, true
set :deploy_via, :copy
set :copy_exclude, ".vagrant/*"
set :public_children, []
set :keep_releases, 5
set :application, "ruby"
set :user, "hack"
set :use_sudo, false
set :repository, "./_site"
set :deploy_to, "/hack/#{application}"
before "deploy:update_code" do
run_locally "bundle exec jekyll build"
end
server ENV.fetch("server", "188.226.232.4"), :app, primary: true
namespace :deploy do
task :finalize_update do
# In a Rails deploy, this would create symlinks to the shared directory for
# log, system, tmp and pids directories. We don't need those.
end
end