Created
July 29, 2009 12:11
-
-
Save czottmann/158087 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :worker do | |
desc "Start Twitter worker." | |
task :start_v1 do | |
run "cd #{current_path} && rake worker:start" # funktioniert nicht | |
end | |
desc "Start Twitter worker." | |
task :start_v2 do | |
run "cd #{current_path} && ./script/runner ./jobs/twitter_fetcher.rb &" # funktioniert nicht | |
end | |
desc "Start Twitter worker." | |
task :start_v3 do | |
run "cd #{current_path} && nohup ./script/runner ./jobs/twitter_fetcher.rb &" # funktioniert nicht | |
end | |
desc "Stop Twitter worker." | |
task :stop do | |
run "cd #{current_path} && rake worker:stop" # funktioniert | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :worker do | |
desc "Start Twitter worker" | |
task :start do | |
system("./script/runner ./jobs/twitter_fetcher.rb &") | |
end | |
desc "Stop Twitter worker" | |
task :stop do | |
system("touch ./tmp/stop_worker.txt") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment