deploy.rb revision 234a52ce997ea67bbf347044e7c4e9c0f5317b34
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