Permalink
Browse files

dj needs the rails env

  • Loading branch information...
1 parent 715c4ba commit 7b9f42e1db78b5bc02bdca752df417fd27fa5561 @qrush qrush committed Aug 18, 2010
Showing with 4 additions and 2 deletions.
  1. +2 −2 config/pill.rb
  2. +1 −0 config/pills/production.rb
  3. +1 −0 config/pills/staging.rb
View
@@ -8,8 +8,8 @@
process.stop_grace_time = 10.seconds
process.restart_grace_time = 10.seconds
- process.start_command = "PATH=#{REE_PATH}:$PATH script/delayed_job start"
- process.stop_command = "PATH=#{REE_PATH}:$PATH script/delayed_job stop"
+ process.start_command = "PATH=#{REE_PATH}:$PATH RAILS_ENV=#{RAILS_ENV} script/delayed_job start"
+ process.stop_command = "PATH=#{REE_PATH}:$PATH RAILS_ENV=#{RAILS_ENV} script/delayed_job stop"
process.pid_file = "#{RELEASE_PATH}/shared/pids/delayed_job.pid"
@@ -1,2 +1,3 @@
RELEASE_PATH = "/var/www/rubycentral/gemcutter.org"
+RAILS_ENV = "production"
require File.join(File.dirname(__FILE__), "..", "pill")
View
@@ -1,2 +1,3 @@
RELEASE_PATH = "/var/www/rubycentral/staging.gemcutter.org"
+RAILS_ENV = "staging"
require File.join(File.dirname(__FILE__), "..", "pill")

0 comments on commit 7b9f42e

Please sign in to comment.