deploy.rb revision 8438eed3084e892d5399ea89207e8f603b4ebfef
desc "Restart Application"
run "touch #{current_path}/tmp/restart.txt"
end
desc "Moves and replaces the secret-token if missing in shared directory"
task :symlink_secret, :roles => :app, :except => { :no_release => true } do
release_secret = "#{release_path}/config/initializers/#{filename}"
shared_secret = "#{shared_path}/config/#{filename}"
rake_command "secret:replace"
run "mv #{release_secret} #{shared_secret}"
end
# symlink secret token
run "ln -nfs #{shared_secret} #{release_secret}"
end
end
run "mkdir -p #{shared_path}/config"
run "mkdir -p #{shared_path}/uploads"
end
puts "an anonymous hook!"
end