-
-
Save itsderek23/4979374 to your computer and use it in GitHub Desktop.
Revisions
-
andre created this gist
Jan 23, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #! /usr/bin/env bash # This example bash script file is located here: /home/your-username/scripts/scout_cron.sh for our example, but could be anywhere on your server. # Make sure you remember to make this file an executable script by: chmod +x /home/your-username/scripts/scout_cron.sh. # Loading the RVM Environment files. To find your unique rvm path use: rvm env --path -- ruby-version[@gemset-name]. # For example: rvm env --path -- 1.9.3-p194@projectX source /home/deploy/.rvm/environments/ruby-1.9.3-p374 # Changing directories to our rails project. The example below is a Capistrano path. cd /u/apps/zed/current # Call Scout and pass your unique key you were given. bundle exec scout KEY # Below is an example of using this script from cron every minute. # Type crontab -e to edit your user's cron file and add the following two lines at the bottom. # MAILTO="" # * * * * * /home/your-username/scripts/scout_cron.sh