<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -83,12 +83,12 @@ h2. Running Jobs
 @script/delayed_job@ can be used to manage a background process which will start working off jobs.
 
 &lt;pre&gt;
-$ ruby script/delayed_job -e production start
-$ ruby script/delayed_job -e production stop
+$ RAILS_ENV=production script/delayed_job start
+$ RAILS_ENV=production script/delayed_job stop
 
 # Runs two workers in separate processes.
-$ ruby script/delayed_job -e production -n 2 start
-$ ruby script/delayed_job -e production stop
+$ RAILS_ENV=production script/delayed_job -n 2 start
+$ RAILS_ENV=production script/delayed_job stop
 &lt;/pre&gt;
 
 Workers can be running on any computer, as long as they have access to the database and their clock is in sync. Keep in mind that each worker will check the database at least every 5 seconds.</diff>
      <filename>README.textile</filename>
    </modified>
    <modified>
      <diff>@@ -3,12 +3,12 @@
 #
 # To use:
 # 1. copy to /var/www/apps/{app_name}/shared/delayed_job.monitrc
-# 2. replace {app_name} and {environment} as appropriate
+# 2. replace {app_name} as appropriate
 # 3. add this to your /etc/monit/monitrc
 #
 #   include /var/www/apps/{app_name}/shared/delayed_job.monitrc
 
 check process delayed_job
   with pidfile /var/www/apps/{app_name}/shared/pids/delayed_job.pid
-  start program = &quot;/var/www/apps/{app_name}/current/script/delayed_job -e {environment} start&quot;
-  stop program = &quot;/var/www/apps/{app_name}/current/script/delayed_job -e {environment} stop&quot;
\ No newline at end of file
+  start program = &quot;RAILS_ENV=production /var/www/apps/{app_name}/current/script/delayed_job start&quot;
+  stop program = &quot;RAILS_ENV=production /var/www/apps/{app_name}/current/script/delayed_job stop&quot;
\ No newline at end of file</diff>
      <filename>contrib/delayed_job.monitrc</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@ module Delayed
           exit 1
         end
         opts.on('-e', '--environment=NAME', 'Specifies the environment to run this delayed jobs under (test/development/production).') do |e|
-          ENV['RAILS_ENV'] = e
+          STDERR.puts &quot;The -e/--environment option has been deprecated and has no effect. Use RAILS_ENV and see http://github.com/collectiveidea/delayed_job/issues/#issue/7&quot;
         end
         opts.on('--min-priority N', 'Minimum priority of jobs to run.') do |n|
           @options[:min_priority] = n</diff>
      <filename>lib/delayed/command.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>69ece0dec9b427290096cd523e4644256cb0b2bd</id>
    </parent>
  </parents>
  <author>
    <name>Brandon Keepers</name>
    <email>brandon@collectiveidea.com</email>
  </author>
  <url>http://github.com/collectiveidea/delayed_job/commit/2efd95ee1aed13b821dc7078beded03adb0d71be</url>
  <id>2efd95ee1aed13b821dc7078beded03adb0d71be</id>
  <committed-date>2009-09-28T09:58:31-07:00</committed-date>
  <authored-date>2009-09-28T09:58:31-07:00</authored-date>
  <message>Remove the -e/--environment option until we can come up with a workaround. Closes #7</message>
  <tree>f6b22cc3bd09c52acfc5c23d2a0a4004c019d303</tree>
  <committer>
    <name>Brandon Keepers</name>
    <email>brandon@collectiveidea.com</email>
  </committer>
</commit>
