Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F324154
deploy.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Nov 24, 3:31 PM
Size
813 B
Mime Type
text/plain
Expires
Tue, Nov 26, 3:31 PM (20 h, 41 m)
Engine
blob
Format
Raw Data
Handle
156076
Attached To
rARCHIVING archiving
deploy.rb
View Options
# config valid only for Capistrano 3.1
lock
'3.2.1'
set
:application
,
'webdns'
set
:repo_url
,
'git@bitbucket.org:xlembouras/webns.git'
set
:deploy_to
,
'/srv/webdns'
set
:linked_files
,
%w(config/database.yml config/secrets.yml)
set
:linked_dirs
,
%w(log tmp/pids tmp/cache tmp/sockets)
set
:keep_releases
,
5
namespace
:deploy
do
desc
'Restart application'
task
:restart
do
on
roles
(
:app
),
in
:
:sequence
,
wait
:
5
do
# Your restart mechanism here, for example:
# execute :touch, release_path.join('tmp/restart.txt')
end
end
after
:publishing
,
:restart
after
:restart
,
:clear_cache
do
on
roles
(
:web
),
in
:
:groups
,
limit
:
3
,
wait
:
10
do
# Here we can do anything such as:
# within release_path do
# execute :rake, 'cache:clear'
# end
end
end
end
Event Timeline
Log In to Comment