16 lines
299 B
Ruby
16 lines
299 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
ENV['RAILS_ENV'] = ARGV[0] || 'production'
|
|
require File.dirname(__FILE__) + '/../config/environment'
|
|
require 'rubygems'
|
|
require 'timeout'
|
|
|
|
begin
|
|
timeout 15 do
|
|
Anthology.refresh!
|
|
end
|
|
puts "Just finished"
|
|
rescue Exception => e
|
|
puts "Scratch failed: #{e.message}"
|
|
end
|