diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-06-19 11:37:35 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-06-19 11:37:35 +0100 |
commit | 6cb5de1cdb505b11efb266ed37fc2dd8e1fd1237 (patch) | |
tree | abfba7a7c67cb2eb9f3d365747a17f9c597e6bb9 | |
parent | a79349eb1fc51f0af1f3087b7c005e37b7133fc6 (diff) |
Add some commented out lines showing how to use with rbenv
-rwxr-xr-x | config/alert-tracks-debian.example | 4 | ||||
-rw-r--r-- | config/crontab-example | 4 | ||||
-rwxr-xr-x | config/purge-varnish-debian.example | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/config/alert-tracks-debian.example b/config/alert-tracks-debian.example index a098bc332..ac4a55c8f 100755 --- a/config/alert-tracks-debian.example +++ b/config/alert-tracks-debian.example @@ -24,6 +24,10 @@ DUSER=!!(*= $user *)!! # RAILS_ENV=your_rails_env # export RAILS_ENV +# Uncomment the following line if running under rbenv - we want this daemon to run +# in the context of the ruby version defined for the site +# PATH=/home/!!(*= $user *)!!/.rbenv/shims:/usr/local/bin:/usr/bin:/bin + trap "" 1 export PIDFILE LOGFILE diff --git a/config/crontab-example b/config/crontab-example index bfcba0568..a83f418fa 100644 --- a/config/crontab-example +++ b/config/crontab-example @@ -5,6 +5,10 @@ # Email: hello@mysociety.org. WWW: http://www.mysociety.org/ PATH=/usr/local/bin:/usr/bin:/bin +# Uncomment the following line if running under rbenv - we want this cron to run +# in the context of the ruby version defined for the site +# PATH=/home/!!(*= $user *)!!/.rbenv/shims:/usr/local/bin:/usr/bin:/bin + MAILTO=!!(*= $mailto *)!! # Every 5 minutes diff --git a/config/purge-varnish-debian.example b/config/purge-varnish-debian.example index 457a77ed8..779266d2d 100755 --- a/config/purge-varnish-debian.example +++ b/config/purge-varnish-debian.example @@ -24,6 +24,10 @@ DUSER=!!(*= $user *)!! # RAILS_ENV=your_rails_env # export RAILS_ENV +# Uncomment the following line if running under rbenv - we want this daemon to run +# in the context of the ruby version defined for the site +# PATH=/home/!!(*= $user *)!!/.rbenv/shims:/usr/local/bin:/usr/bin:/bin + type varnishadm > /dev/null 2>&1 || exit trap "" 1 |