From a5e3c82c0789e69b6730cbd3eabd98372d6caa8d Mon Sep 17 00:00:00 2001 From: Henare Degan Date: Tue, 19 Feb 2013 12:28:26 +1100 Subject: Upgrade script syntax (not fully tested) --- script/mailin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/mailin') diff --git a/script/mailin b/script/mailin index b4d77f7a4..6ed6bc7db 100755 --- a/script/mailin +++ b/script/mailin @@ -13,7 +13,7 @@ source commonlib/shlib/deployfns read_conf config/general -script/runner 'RequestMailer.receive(STDIN.read)' <"$INPUT" >"$OUTPUT" 2>&1 +rails runner 'RequestMailer.receive(STDIN.read)' <"$INPUT" >"$OUTPUT" 2>&1 ERROR_CODE=$? if [ ! "$ERROR_CODE" = "0" ] then -- cgit v1.2.3 From b920cb2a151236ea0b1340eae024e25729da234b Mon Sep 17 00:00:00 2001 From: Mark Longair Date: Fri, 12 Apr 2013 18:36:48 +0100 Subject: In the mailin script, run "rails runner" with "bundle exec" The example usages in the documentation all refer to the mailin script without a "bundle exec" prefix, so with bundler-based installation these examples may not work without a "bundle exec" being used in the script. --- script/mailin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/mailin') diff --git a/script/mailin b/script/mailin index 6ed6bc7db..f782df215 100755 --- a/script/mailin +++ b/script/mailin @@ -13,7 +13,7 @@ source commonlib/shlib/deployfns read_conf config/general -rails runner 'RequestMailer.receive(STDIN.read)' <"$INPUT" >"$OUTPUT" 2>&1 +bundle exec rails runner 'RequestMailer.receive(STDIN.read)' <"$INPUT" >"$OUTPUT" 2>&1 ERROR_CODE=$? if [ ! "$ERROR_CODE" = "0" ] then -- cgit v1.2.3