Open JeanOsorio opened 10 years ago
can you post the classes_notification.rb
?
Also, require File.expand_path("../../../config/environment", __FILE__)
is this rails? Is one of recent versions that uses bundler? If so:
#!/usr/bin/ruby
require File.expand_path("../../../config/environment", __FILE__)
Then just add forever
to the Gemfile
I'm usign foreverb to run two daemon:
generate_roster_kids.rb
booking_release.rb
Those file are in my blabloo/script/user folder, as you can see the generate_roster_kids log on a file "bar.log", I have the log file on blabloo/script/log/bar.log but when I try to use the command foreverb tail generate_roster_kids or foreverb tail booking_release I always get:
Also, a week ago I have a third daemon with the name of "classes_notification.rb" and now when I try to run foreverb start --all I get the following:
Do you want really start /Users/jeanosorio/repos/blabloo/script/user/generate_roster_kids.rb? Do you want really start /Users/jeanosorio/repos/blabloo/script/user/classes_notification.rb? Do you want really start /Users/jeanosorio/repos/blabloo/script/user/booking_release.rb?
but the classes_notification file does not exist. What I'm doing wrong???, how can I stop foreverb to ask me for the classes_notification daemon and what happen with the log file.
Thanks in advance for your help.