# The number of recommendations to store per user. Set this to a lower
# number to improve Redis memory usage.
#
# Default: 100
config.recommendations_to_store = 100
# config valid only for Capistrano 3.1
lock '3.1.0'
set :application, 'rti_site'
set :repo_url, 'url'
set :git_http_username, 'username'
set :git_http_password, 'password'
set :deploy_to, '/var/www/rti_site'
set :linked_files, %w{config/database.yml}
set :linked_dirs, %w{bin 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
# 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
$(document).ready ->
$("#items figure .sub-btn a").click ->
$("#items figure .sub-btn a").on("ajax:success", (e, data, status, xhr) ->
$("#item_info_modal").append data
).on "ajax:error", (e, xhr, status, error) ->
$("body").replaceWith "bad"
def item_search_by_id
id = params[:id]
@item = Item.item_search_by_id(id)
render :layout => false
end