Sha256: 37506ed3cf887badee3a96163d7f177488cde7c99c12b2d72109135a97923ad3

Contents?: true

Size: 790 Bytes

Versions: 7

Compression:

Stored size: 790 Bytes

Contents

#!/bin/sh

#NOTE: you can also call 
#      /usr/local/ec2onrails/bin/exec_runner
#      to run a script under a specific role
#      see the file for details

if test -e /mnt/app/current; then
  cd /mnt/app/current

  if test -e /mnt/app/current/script/cron/hourly; then 
     if test -f /mnt/app/current/script/cron/hourly; then 
        sudo -u app /usr/local/ec2onrails/bin/rails_env script/cron/hourly;
     else
        for f in script/cron/hourly/*; do
           if test -f $f; then 
              sudo -u app /usr/local/ec2onrails/bin/rails_env $f
           fi
        done
     fi
     exit 0;
  fi

  #DEPRECATED: just for old usage....
  if test -e /mnt/app/current/script/hourly
  then 
     sudo -u app /usr/local/ec2onrails/bin/rails_env script/hourly
     exit 0;
  fi

fi

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
ewoutvonk-ec2onrails-0.9.10.4.001 server/files/etc/cron.hourly/app
gigpark-ec2onrails-0.9.10.3 server/files/etc/cron.hourly/app
pauldowman-ec2onrails-0.9.10.0 server/files/etc/cron.hourly/app
pauldowman-ec2onrails-0.9.10.1 server/files/etc/cron.hourly/app
pauldowman-ec2onrails-0.9.10.2 server/files/etc/cron.hourly/app
pauldowman-ec2onrails-0.9.10.3 server/files/etc/cron.hourly/app
pauldowman-ec2onrails-0.9.10.4 server/files/etc/cron.hourly/app