This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hotspot::Page.where(page_type: 'Advertising').find_each do |row| | |
button_type = case row.redirect_text | |
when nil, '' then 'full_screen' | |
when 'верх' then 'top_screen' | |
when 'центр' then 'middle_screen' | |
when 'низ' then 'bottom_screen' | |
else 'button_screen' | |
end | |
row.update_columns(redirect_text: '', button_type: button_type) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :private_pub_pid, -> { "#{current_path}/tmp/pids/private_pub.pid" } | |
set :private_pub_socket, -> { "#{current_path}/tmp/sockets/private_pub.sock" } | |
set :private_pub_rackup, -> { "#{current_path}/private_pub.ru" } | |
namespace :private_pub do | |
desc "Start private_pub server" | |
task :start do | |
on roles(:app) do | |
within release_path do | |
with rails_env: fetch(:stage) do |