-
Notifications
You must be signed in to change notification settings - Fork 5
/
Capfile
39 lines (38 loc) · 1019 Bytes
/
Capfile
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
37
38
39
require 'capistrano/setup'
require 'capistrano/deploy'
#
#
# load 'deploy'
#
# set :deploy_to, "/var/www/unpoly.com/"
# set :user, "deploy-unpoly_p"
# set :use_sudo, false
# set :keep_releases, 10
#
# server "c23.makandra-3.makandra.de", :app, :web, :primary => true
# server "c42.makandra-3.makandra.de", :app, :web
#
# # Backup target
# # set :deploy_to, "/opt/www/unpoly.com/"
# # set :user, "deploy"
# # server "87.230.18.24", :app, :web, :primary => true
#
# ssh_options[:forward_agent] = true
#
# namespace :deploy do
# task :build_files do
# run_locally 'middleman build'
# end
#
# task :update_code do
#
# local_path = File.join(Dir.pwd, 'build', '.')
# remote_path = File.join(release_path, 'build')
#
# run "mkdir -p #{remote_path}"
# top.upload local_path, remote_path, via: :scp, recursive: true
# end
# end
#
# before 'deploy:update_code', 'deploy:build_files'
# after 'deploy:restart', 'deploy:cleanup' # https://makandracards.com/makandra/1432-capistrano-delete-old-releases