Displaying 20 results from an estimated 20000 matches similar to: "How to use script/runner"
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 Apr 24
3
Running in non-dev envs. with script/runner shebang setup
All,
I have a script that runs script/runner via the shebang mechanism at the
top o the file, like so:
#!/usr/bin/env ./script/runner
This works fine in development, how would I get it to run in
non-development environments?
Thanks,
Wes
--
Posted via http://www.ruby-forum.com/.
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
2006 Sep 13
2
stale spec runner?
I''ve been working with the RSpec on Rails plugin. Great job guys!
The Rails spec runner (server) definitely speeds things up nicely.
But I''m having some trouble keeping it functional. When I start the
server, the first spec execution runs fine. Every following
execution fails though. Each spec complains about the
''controller_path'' missing from my
2006 Jul 26
1
lesson learned: script/runner does not abort on failed require
After a fresh installation of an application, some utility scripts
run with script/runner quietly aborted right after their start. No
error message whatsoever, just a new shell prompt. The reason was an
uninstalled dependecy, but that was difficult to determine because
the load failure was not reported:
% ruby script/runner ''require "foobarbaz"''
%
Why
2007 Oct 05
5
DRbConnError when using script/runner
I am running ferret (0.11.4) and acts_as_ferret (stable from svn) in a
rails 1.2.3 app in production using the DRb server. I recently upgraded
my configuration and the method with which I start and stop the server
no longer works: Here is the command I would like to use (and have used
in the past) to start the aaf server:
$ /Library/WebServer/rails/ccdb/current/script/runner -e production
2010 Feb 23
2
Logging and Exceptions with Script Runner
I have cron jobs that run script/runner commands and I have two
questions:
1. Should logging be working when calling the logger methods from an
object within the script?
2. Should Exception Notification work when an exception occurs in the
script/runner?
Thanks!
Tom
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to
2007 Aug 27
2
issue with edge rails and urls
I just switched our project over to Edge Rails, and I''m running into
this problem with all of my helper methods that call _url methods:
NoMethodError in ''ApplicationHelper home_link should generate a valid
home link when User.current and Profile.current is not set''
You have a nil object when you didn''t expect it!
You might have expected an instance of
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
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
2007 Jul 31
11
helper spec not finding rails core helpers
Hi,
My helper specs were going ok until I added a call to a rails
DateHelper method in one of my helpers
http://api.rubyonrails.com/classes/ActionView/Helpers/
DateHelper.html#M000574
The helper runs fine from my view templates, just dies in the spec test.
I boiled my question down to a simple (not too useful) example. I''m
not sure what I''m missing.
#
2007 Sep 20
10
Getting Started with Story Runner
I haven''t found any How To''s to use story runner and I''m not sure how to get
started.
Should I be looking for resources on how to use rbehave?
How do I generate my first Story?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070920/07a80bc7/attachment.html
2006 May 21
0
expiring cache fragments using script/runner
I''ve just set up caching on my site and want to expire some of fragments on
an hourly basis.
I was going to use cron and script/runner to do this.
For other fragments that I am expiring, I am using expire_fragment inside a
sweeper class, something like:
class QuestionSweeper < ActionController::Caching::Sweeper
observe Question
def after_validation_on_update(question)
2006 Feb 16
1
runner: url_for with mailers impossible
I created a runner script to send a newsletter. I found this hack where
you pass a controller and specify a helper:
http://wiki.rubyonrails.org/rails/pages/HowtoUseUrlHelpersWithActionMailer
But in a runner script there is no controller to pass. So, it looks like
it''s impossible to use url_for in the mailer template this way.
Another way around the no url_for problem is to pass the
2008 Apr 22
2
syntax error in runner.rb
ruby script/runner ''load "filename.rb"''*
fails with
./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47:
(eval):1: compile error (SyntaxError)
Rails version is 1.2.0 on Linux
Any clues on what could be incorrect?
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message
2008 Mar 19
3
ApplicationHelper
When working with views, I use instance methods of ApplicationHelper:
# app/helpers/application_helper.rb:
module ApplicationHelper
def distribute(total, min, cutof, list)
[1,2,3]
end
end
# app/views/planner/_mta_colors.rhtml:
<td>
<%
...
dist = distribute(total_v_px, 4, 0, colors.collect{|color| color[1]})
...
%>
So to test the distribute method in ApplicationHelper, I have
2007 Oct 04
1
PUT- or POST-ing xml
I''d like to write a test of a REST service wherein XML is submitted as the
request entity.
In Test::Unit on Rails, this seems to be possible in an integration test,
but not in a functional test. RSpec uses the Rails functional test
framework, as far as I can tell, so it suffers the same result; it tries to
symbolize the keys of the ''parameters'' hash, except the
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
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 Feb 02
4
AjpRails; Rails runner using AJP13
Hello, all.
I released AjpRails 0.1.0. AjpRails is a script for running Ruby on
Rails. Rails this script runs uses AJP13(Apache JServ Protocol 1.3)
instead of CGI or FastCGI, to cooperate with your HTTPd.
Its RubyForge project is:
http://rubyforge.org/projects/ruby-ajp/
Project home page is:
http://ruby-ajp.rubyforge.org/wiki/wiki.pl
Now, AjpRails is slower and much more unstable than