KonishiLee's Blog

About Capistrano

背景

Capistrano A deployment automation tool built on Ruby, Rake, and SSH.

命令集合

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
64
65
66
67
68
cap bundler:install # Install the current Bundler environment
cap bundler:map_bins # Maps all binaries to use `bundle exec` by default
cap deploy # Deploy a new release
cap deploy:check # Check required files and directories exist
cap deploy:check:directories # Check shared and release directories exist
cap deploy:check:linked_dirs # Check directories to be linked exist in shared
cap deploy:check:linked_files # Check files to be linked exist in shared
cap deploy:check:make_linked_dirs # Check directories of files to be linked exist in shared
cap deploy:check_revision # Make sure local git is in sync with remote
cap deploy:cleanup # Clean up old releases
cap deploy:cleanup_assets # Cleanup expired assets
cap deploy:cleanup_rollback # Remove and archive rolled-back release
cap deploy:clobber_assets # Clobber assets
cap deploy:compile_assets # Compile assets
cap deploy:finished # Finished
cap deploy:finishing # Finish the deployment, clean up server(s)
cap deploy:finishing_rollback # Finish the rollback, clean up server(s)
cap deploy:log_revision # Log details of the deploy
cap deploy:migrate # Runs rake db:migrate if migrations are set
cap deploy:migrating # Runs rake db:migrate
cap deploy:normalize_assets # Normalize asset timestamps
cap deploy:npm_install # Run npm install and bower install
cap deploy:published # Published
cap deploy:publishing # Publish the release
cap deploy:restart # Restart application
cap deploy:revert_release # Revert to previous release timestamp
cap deploy:reverted # Reverted
cap deploy:reverting # Revert server(s) to previous release
cap deploy:rollback # Rollback to previous release
cap deploy:rollback_assets # Rollback assets
cap deploy:set_current_revision # Place a REVISION file with the current revision SHA in the current release path
cap deploy:started # Started
cap deploy:starting # Start a deployment, make sure server(s) ready
cap deploy:symlink:linked_dirs # Symlink linked directories
cap deploy:symlink:linked_files # Symlink linked files
cap deploy:symlink:release # Symlink release to current
cap deploy:symlink:shared # Symlink files and directories from shared to release
cap deploy:updated # Updated
cap deploy:updating # Update server(s) by setting up a new release
cap doctor # Display a Capistrano troubleshooting report (all doctor: tasks)
cap doctor:environment # Display Ruby environment details
cap doctor:gems # Display Capistrano gem versions
cap doctor:variables # Display the values of all Capistrano variables
cap install # Install Capistrano, cap install STAGES=staging,production
cap rake:invoke # Run a task on a remote server
cap rvm:check # Prints the RVM and Ruby version on the target host
cap sidekiq:monit:config # Config Sidekiq monit-service
cap sidekiq:monit:monitor # Monitor Sidekiq monit-service
cap sidekiq:monit:restart # Restart Sidekiq monit-service
cap sidekiq:monit:start # Start Sidekiq monit-service
cap sidekiq:monit:stop # Stop Sidekiq monit-service
cap sidekiq:monit:unmonitor # Unmonitor Sidekiq monit-service
cap sidekiq:quiet # Quiet sidekiq (stop processing new tasks)
cap sidekiq:respawn # Respawn missing sidekiq processes
cap sidekiq:restart # Restart sidekiq
cap sidekiq:rolling_restart # Rolling-restart sidekiq
cap sidekiq:start # Start sidekiq
cap sidekiq:stop # Stop sidekiq
cap unicorn:add_worker # Add a worker (TTIN)
cap unicorn:duplicate # Duplicate Unicorn; alias of unicorn:restart
cap unicorn:legacy_restart # Legacy Restart (USR2 + QUIT); use this when preload_app: true and oldbin pid needs cleanup
cap unicorn:reload # Reload Unicorn (HUP); use this when preload_app: false
cap unicorn:remove_worker # Remove a worker (TTOU)
cap unicorn:restart # Restart Unicorn (USR2); use this when preload_app: true
cap unicorn:start # Start Unicorn
cap unicorn:stop # Stop Unicorn (QUIT)
cap whenever:clear_crontab # Clear application's crontab entries using Whenever
cap whenever:update_crontab # Update application's crontab entries using Whenever
如果喜欢这个分享,就帮忙买杯咖啡吧