-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCapfile
More file actions
63 lines (56 loc) · 1.8 KB
/
Capfile
File metadata and controls
63 lines (56 loc) · 1.8 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Load DSL and Setup Up Stages
require 'capistrano/setup'
# Includes default deployment tasks
require 'capistrano/deploy'
# Includes tasks from other gems included in your Gemfile
#
# For documentation on these, see for example:
#
# https://github.com/capistrano/rvm
# https://github.com/capistrano/rbenv
# https://github.com/capistrano/chruby
# https://github.com/capistrano/bundler
# https://github.com/capistrano/rails
#
# require 'capistrano/rvm'
# require 'capistrano/rbenv'
# require 'capistrano/chruby'
# require 'capistrano/bundler'
require 'capistrano/rails'
# Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
# GTK, from here (http://capistranorb.com/documentation/getting-started/flow/):
# When you run cap production deploy, it invokes the following tasks in sequence:
# deploy:starting - start a deployment, make sure everything is ready
# deploy:started - started hook (for custom tasks)
# deploy:updating - update server(s) with a new release
# deploy:updated - updated hook
# deploy:publishing - publish the new release
# deploy:published - published hook
# deploy:finishing - finish the deployment, clean up everything
# deploy:finished - finished hook
# Hence, the flow:
# deploy
# deploy:starting
# [before]
# deploy:ensure_stage
# deploy:set_shared_assets
# deploy:check
# deploy:started
# deploy:updating
# git:create_release
# deploy:symlink:shared
# deploy:updated
# [before]
# deploy:bundle
# [after]
# deploy:migrate
# deploy:compile_assets
# deploy:normalize_assets
# deploy:publishing
# deploy:symlink:release
# deploy:published
# deploy:finishing
# deploy:cleanup
# deploy:finished
# deploy:log_revision