摘要:
Capistrano 2 首次部署流程修改 config/deploy.rb 和 config/deploy/production.rbbundle exec cap production deploy:setupbundle exec cap production deploy:checkbund... 阅读全文
posted @ 2015-07-29 17:03
冰凌花花~
阅读(205)
评论(0)
推荐(0)
摘要:
cat ~/.ssh/id_rsa.pub 复制内容ssh 10.10x.xx.xxsu - webuservim ~/.ssh/authorized_keys 粘贴进来 阅读全文
posted @ 2015-07-29 16:58
冰凌花花~
阅读(2254)
评论(0)
推荐(0)
摘要:
http://guides.rubyonrails.org/configuring.html#custom-configurationconfig/application.rb # The default locale is :en and all translations from con... 阅读全文
posted @ 2015-07-29 15:49
冰凌花花~
阅读(324)
评论(0)
推荐(0)
摘要:
need_fetch_channel.each do |channel| yesterday = (Time.now - 86000).to_i all_channel_videos = channel.videos.asc(:begin_time) all_channel_vid... 阅读全文
posted @ 2015-07-29 13:16
冰凌花花~
阅读(122)
评论(0)
推荐(0)
摘要:
def set_redis_data(channel_id,channel) redis = Redis.new(:host => '10.xxx.xx.xx', :port => 6379) redis.del(channel_id) yesterday = ... 阅读全文
posted @ 2015-07-29 12:46
冰凌花花~
阅读(202)
评论(0)
推荐(0)
摘要:
next_played_videos = @channel.videos.active.where(:begin_time.gt => begin_time).asc(:begin_time) next_played_videos.each do |video| video... 阅读全文
posted @ 2015-07-29 11:51
冰凌花花~
阅读(208)
评论(0)
推荐(0)

浙公网安备 33010602011771号