code:
require 'forever'
RAILS_ROOT = File.expand_path("..", File.dirname(__FILE__))
Forever.run :fork => true do
before :each do
require RAILS_ROOT + '/config/boot' # here the rails/padrino environment
end
every 2.seconds do
p 'hello world'
end
end
will appear the errors:
WARN: Unresolved specs during Gem::Specification.reset:
thor (>= 0.15.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
"hello world"