Skip to content
This repository
Browse code

dj needs the rails env

  • Loading branch information...
commit 7b9f42e1db78b5bc02bdca752df417fd27fa5561 1 parent 715c4ba
Nick Quaranto authored
4  config/pill.rb
@@ -8,8 +8,8 @@
8 8
     process.stop_grace_time     = 10.seconds
9 9
     process.restart_grace_time  = 10.seconds
10 10
 
11  
-    process.start_command = "PATH=#{REE_PATH}:$PATH script/delayed_job start"
12  
-    process.stop_command  = "PATH=#{REE_PATH}:$PATH script/delayed_job stop"
  11
+    process.start_command = "PATH=#{REE_PATH}:$PATH RAILS_ENV=#{RAILS_ENV} script/delayed_job start"
  12
+    process.stop_command  = "PATH=#{REE_PATH}:$PATH RAILS_ENV=#{RAILS_ENV} script/delayed_job stop"
13 13
 
14 14
     process.pid_file = "#{RELEASE_PATH}/shared/pids/delayed_job.pid"
15 15
 
1  config/pills/production.rb
... ...
@@ -1,2 +1,3 @@
1 1
 RELEASE_PATH = "/var/www/rubycentral/gemcutter.org"
  2
+RAILS_ENV    = "production"
2 3
 require File.join(File.dirname(__FILE__), "..", "pill")
1  config/pills/staging.rb
... ...
@@ -1,2 +1,3 @@
1 1
 RELEASE_PATH = "/var/www/rubycentral/staging.gemcutter.org"
  2
+RAILS_ENV    = "staging"
2 3
 require File.join(File.dirname(__FILE__), "..", "pill")

0 notes on commit 7b9f42e

Please sign in to comment.
Something went wrong with that request. Please try again.