similar to: Port listening, cron jobs and loading rails environment

Displaying 20 results from an estimated 30000 matches similar to: "Port listening, cron jobs and loading rails environment"

2010 Aug 02
2
How to monitor Cron jobs?
Hi guys, I understand how to monitor long running processes with monit or god, but I don''t understand how to monitor Cron jobs (for memory bloating notably) since such processes - always have different PIDs when they start - are precisely supposed to stop when they are done, then restart when asked (vs running all the time). I have been looking on the web for a while, but
2006 May 22
1
MVC and cron jobs
I have a cronjob that runs "ruby script/runner ''Channel.preload''". Channel is a parent model, Item is the child model (i.e., Channel has_many :items and Item belongs_to :channel). The coupling is minimized, the coherence looks good, but I''m not sure the model is the right place to put this code. Is there a better place to put this code, e.g., a component (I
2006 Aug 12
1
Problem with cron and a rails script
I''m trying to run a rails script using cron and I keep getting the following error: /home/domains/lists.lanfusion.com/script/../config/boot.rb:18:in `require'': no such file to load -- rubygems (LoadError) from /home/domains/lists.lanfusion.com/script/../config/boot.rb:18 from /home/domains/lists.lanfusion.com/script/runner:2 When I run the script from ssh it
2008 Apr 26
1
Best cron job method for email notifications?
There are so many ways to do cron jobs in Rails (Backgroundrb, script/ runner, etc.) but I am wondering what would be the best to use in production, just for sending out email/SMS notifications? For example, an email automatically gets sent a day before the due date of a project milestone. Thanks for the help! --~--~---------~--~----~------------~-------~--~----~ You received this message because
2006 May 08
5
Cron Scheduling Problem
Hello, The following cron job is failing to run: 00 16 * * * root ruby /home/nathan/rails/notifications/script/runner -e production Notifier.deliver_summary My understanding from the Rails Wiki is that this should do it. Can anyone shed some light on what I may have setup wrong? Thanks! Nathan Mealey Operations Director Northeast Region Pilgrim IT, LLC NORTHEAST OFFICE 1
2008 Jan 03
23
deployment survey
Hello Mongrels, Building on the last messages about Fastthread, can we get a detailed survey of the different ways people are deploying their applications? It will help with near-future Mongrel development. Please include the following things: * Framework, if any (Camping, Merb, Rails, Nitro, Ramaze, IOWA, Rack...) * Mongrel version * Mongrel handlers used (rails, dirhandler, camping,
2011 May 20
3
"no such file to load -- rails/commands/runner (LoadError)"
Hi, I am using ruby 1.9.2 and rails 3 for my application. I have written a bash script which I want to run in cron. If I directly run the bash file it runs. If I run it through the cron I get the following error:- "/usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'': no such file to load -- rails/commands/runner (LoadError) from
2008 Oct 22
3
Rake task vs script/runner
Hello, until now I allways used script/runner for running Rails cron jobs I wonder is there is any benefit (except not having any fake runner model in the models directory) to use a rake task instead in lib/tasks Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2008 Jan 13
3
How to trace running spec
Hey all, I have a spec that is hanging when it is running. How do I get the rspec runner to show what specs it''s running so I can which one is hanging? I am calling the runner from my rails project. Thanks, Ben
2008 Oct 02
1
acts_as_taggable_on environment issues
Like most people, I''ve got two machines: one for development and one for production. I''ve done everything I can to make sure the ruby/rails environments are the same, but of course they''re not identical (I''ll get into that in a moment). The error that I''m getting happens when I call a method in a background task controller on the production machine; I
2007 Jan 24
4
Rails App on Mongrel+Apache Stops Listening
Howdy, I''m trying to debug a situation where a Rails app running on Mongrel +Apache stops listening to requests. Restarting Mongrel and Apache brings it back to life. First off, here''s some info on versions, etc...: Red Hat Enterprise Linux ES release 3 (Taroon Update 8) ruby 1.8.5 (2006-12-04 patchlevel 2) [x86_64-linux] Mongrel 1.0.1 Rails 1.2.1 fastthread (0.6.2)
2008 Oct 28
1
Script/Runner
I have a production site that has a couple of batch jobs, I have used script/runner and cron to run these jobs. This works ok for jobs that only run once overnight during off peak. I am expiring sessions older than 30 mins every 15 mins using script/runner, but I''m concerned about the hit of script/runner loading up the whole rails environment, specifically since I only have a 256MB
2009 Jan 21
5
Runner suddenly fails...
I have some jobs running through cron jobs and runner that suddenly starts failing. This is how it looks: from /usr/local/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/commands/runner.rb:47 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from
2005 Sep 14
9
Sending Emails via Cron
I''m developing an application using RoR that will generate enough email notifications that I don''t want them in the actual web application. So, I''m thinking about having an outgoing queue that a cron job would pick up and deliver. My question is if this is possible with a ruby script that uses ActiveRecord and ActiveMailer?
2006 May 29
4
Time-based cache fragment expiration
Hello, I''m trying to figure out how I could implement fragment caching that expires every x amount of time. I thought of writing a runner script that would expire the cache and set it as a cron job, but that doesn''t really work because runner scripts act on models and not controllers. Does anybody have any ideas? Regards, -carl
2008 Sep 21
3
Monit; BackgroundRB; environment variables
I started emailing monit mailing list because I started getting this problem where I couldn''t start backgroundrb with monit anymore, thinking it was a monit problem. However, I back tracked a bit since I had added code to my project, and monit was able to start backgroundrb again. I seem to have zeroed in on the problem. I''m not sure where the problem lies - maybe monit or
2006 May 26
3
once a day activity
Say I want to send out an email once a day to people who''s name is "Bob". Would I use script/runner in conjunction with cron? Or is there another cool(er) way now? Thanks, Joe
2011 Mar 19
2
httpd cannot serve web page on port 2812 (for Monit)
Might there be anything CentOS related on why I cannot access the Monit GUI system on http://box-running-monit.com:2812 ? I am using a very basic /etc/monit.conf config, but I cannot get it serve the web page on my box The service start and stops fine (e.g. "/etc/init.d/monit start"), and I have it set to listen to port 2812 in the "/etc/monit.conf file" (so far, kept the
2011 Apr 18
1
rails runner giving problem
Hi, I have a rails 2.3.8 application, which has some ruby script in scripts folder which has ran through the cron. I just upgraded my application to rails 3. My problem is I am not able found a solution to run these scripts. In Rails 2.3.8:- ruby script/runner test.rb In Rails 3:- rails runner test.rb does not working. Can anyone tell me How can I run the scripts? Thanks, Mike -- Posted
2006 Nov 04
8
alternatives to script/runner?
I''ve been using script/runner to add and delete files from the database in response to inotify events. This works in theory, but is too slow to keep up with a large number of events in succession; I''m suspecting that the bottleneck is that script/runner has a huge startup cost. One thing I thought of was to queue inotify events, and call script/runner once a minute to clear the