Skip to content

Instantly share code, notes, and snippets.

@sproutventure
Created December 24, 2008 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sproutventure/39563 to your computer and use it in GitHub Desktop.
Save sproutventure/39563 to your computer and use it in GitHub Desktop.
#Crontab runs this every ten minutes (root)
*/10 * * * * /root/scripts/redmine-rake.sh > /tmp/redmine-email.log 2>&1
#this is the script
#!/bin/bash
export PATH=$PATH:/usr/local/rubygems/bin:/usr/local/rubygems/gems/bin
export RUBYLIB=/usr/local/rubygems/lib
export GEM_HOME=/usr/local/rubygems/gems
cd /var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs
RAILS_ENV="production" rake redmine:email:receive_imap port=993 host=imap.gmail.com username=redmine@sproutventure.com password=redmine42 ssl=1
cd /var/www/vhosts/scatter3d.com/subdomains/redmine/httpdocs
RAILS_ENV="production" /usr/local/rubygems/gems/bin/rake redmine:email:receive_imap host=imap.gmail.com username=[username] password=[password] ssl=YES port=993
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment