摘要:
Capistrano 2 首次部署流程修改 config/deploy.rb 和 config/deploy/production.rbbundle exec cap production deploy:setupbundle exec cap production deploy:checkbund... 阅读全文
摘要:
cat ~/.ssh/id_rsa.pub 复制内容ssh 10.10x.xx.xxsu - webuservim ~/.ssh/authorized_keys 粘贴进来 阅读全文
摘要:
http://guides.rubyonrails.org/configuring.html#custom-configurationconfig/application.rb # The default locale is :en and all translations from con... 阅读全文
摘要:
need_fetch_channel.each do |channel| yesterday = (Time.now - 86000).to_i all_channel_videos = channel.videos.asc(:begin_time) all_channel_vid... 阅读全文
摘要:
def set_redis_data(channel_id,channel) redis = Redis.new(:host => '10.xxx.xx.xx', :port => 6379) redis.del(channel_id) yesterday = ... 阅读全文
摘要:
next_played_videos = @channel.videos.active.where(:begin_time.gt => begin_time).asc(:begin_time) next_played_videos.each do |video| video... 阅读全文