Created
December 24, 2008 02:10
-
-
Save sproutventure/39563 to your computer and use it in GitHub Desktop.
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 characters
#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 [email protected] 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