Cronjob

We will now create the cronjob for refreshing the Redmine database from our repository
This needs to be done on BlueHost, as I haven't gotten the "auto-pulling" from the repository to work.
For your own installation you need to change all that is in this format

commands to run directly from the prompt is in this format (of course, after changing the values )

Tasks:

  1. Create a cronjob
  2. Set up cronjob in BlueHost control panel

Create a cronjob

cd
mkdir bin
echo '#!/bin/bash' > ~/bin/myRedmineCronjob
echo 'cd ~/public_html/redminedemo' >> ~/bin/myRedmineCronjob
echo '/ramdisk/bin/ruby script/runner "Repository.fetch_changesets" -e production' >> ~/bin/myRedmineCronjob
chmod 700 ~/bin/myRedmineCronjob


Set up a cronjob in BlueHost cPanel

The only way to add a cronjob is trough the cPanel.

1: Choose Cron jobs in your BlueHost cPanel

2: Choose advanced

3: Enter the values as shown (Replace USERNAME with your Bluehost username)


All done.

The only thing remaining is to check that you see your changesets from your repository in the project you made.

Cronjob1.png (10.4 KB) Magne Skrugstad, 11/15/2008 05:50 PM

Cronjob2.png (2.2 KB) Magne Skrugstad, 11/15/2008 05:50 PM

Cronjob3.png (5 KB) Magne Skrugstad, 11/15/2008 05:50 PM

Also available in: HTML TXT