blob: 51362d559df3429359d48d83a6ff4684b8e2ff79 (
plain) (
tree)
|
|
lock '3.2.1'
# change this to your application name
set :application, 'hmno'
# change this to your fork
set :repo_url, 'git@github.com:snake66/project-limestone.git'
set :linked_files, %w{config/initializers/refinery/core.rb config/initializers/secret_token.rb config/piwik.yml}
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
namespace :deploy do
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
# Touching this file forces the server to reload
# the application
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
|