forked from rubygems/rubygems.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshipit.yml
More file actions
24 lines (24 loc) · 804 Bytes
/
Copy pathshipit.yml
File metadata and controls
24 lines (24 loc) · 804 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
dependencies:
bundler:
frozen: false
tasks:
restart:
action: Restart application
description: Trigger the restart of both unicorn and background workers
steps:
- bundle exec cap $ENVIRONMENT deploy:restart
enable_maintenance:
action: Enable maintenance mode
description: Disable access to the rails app and show the maintenance page
steps:
- bundle exec cap $ENVIRONMENT maintenance:enable
disable_maintenance:
action: Disable maintenance mode
description: Enable access to the rails app and hide the maintenance page
steps:
- bundle exec cap $ENVIRONMENT maintenance:disable
clear_cache:
action: Clear cache
description: Flushes memcached using rails cache clear
steps:
- bundle exec cap $ENVIRONMENT memcached:flush