Commit f3a5d0e9ed6299b88018d124d77b1ccd424a904a
1 parent
a960a8e9
Exists in
master
and in
27 other branches
Fix script/feed-updaters under rails3
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
script/feed-updater
@@ -28,6 +28,7 @@ OptionParser.new do |opts| | @@ -28,6 +28,7 @@ OptionParser.new do |opts| | ||
28 | end.parse!(ARGV) | 28 | end.parse!(ARGV) |
29 | 29 | ||
30 | Daemons.run_proc(options[:app_name], options) do | 30 | Daemons.run_proc(options[:app_name], options) do |
31 | - require NOOSFERO_ROOT + '/config/environment' | 31 | + Dir.chdir NOOSFERO_ROOT |
32 | + require './config/environment' | ||
32 | FeedUpdater.new.start | 33 | FeedUpdater.new.start |
33 | end | 34 | end |