aboutsummaryrefslogtreecommitdiffstats
path: root/config/run-with-rbenv-path.example
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2015-06-24 11:19:43 +0100
committerGareth Rees <gareth@mysociety.org>2015-06-24 11:19:43 +0100
commit2cce1794a4d9d2c42b83bab8a693900e8ca23ebc (patch)
tree7408a04d5ac0963ec2defbbf7d4955cff7cd62b5 /config/run-with-rbenv-path.example
parented6b256539e0dcaa3764951d90e2dc599a8acddd (diff)
parent54ba7a4fa232ad3b57310551b9a5e19d72060abe (diff)
Merge branch 'develop' into release-22-develop
Diffstat (limited to 'config/run-with-rbenv-path.example')
-rw-r--r--config/run-with-rbenv-path.example8
1 files changed, 8 insertions, 0 deletions
diff --git a/config/run-with-rbenv-path.example b/config/run-with-rbenv-path.example
new file mode 100644
index 000000000..25dec9b60
--- /dev/null
+++ b/config/run-with-rbenv-path.example
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# We want this script to run in the context of the ruby version defined for the site
+PATH=/home/!!(*= $user *)!!/.rbenv/shims:$PATH
+
+source "$1"
+
+exit $?