aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-07-30 11:40:08 +0100
committerLouise Crow <louise.crow@gmail.com>2013-07-30 11:40:45 +0100
commitba3531a68bc3ff836ba687ab0d62ca8bf5026405 (patch)
tree2229c65c721409b3d0cea4b9f9f56fa81fd0a4d0 /script
parent2b154e0527f69a5dd209d20e0c7bce3a02436c28 (diff)
Use first argument to script when not running in daemon mode. Fixes #1023.
Diffstat (limited to 'script')
-rwxr-xr-xscript/runner2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/runner b/script/runner
index 32a0e6b7e..02735531a 100755
--- a/script/runner
+++ b/script/runner
@@ -35,6 +35,6 @@ Dir.chdir(alaveteli_dir) do
Process.detach(pid)
else
# Not daemon mode
- exec("bundle exec rails runner #{ARGV[1]}")
+ exec("bundle exec rails runner #{ARGV[0]}")
end
end