Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

dj needs the rails env

  • Loading branch information...
commit 7b9f42e1db78b5bc02bdca752df417fd27fa5561 1 parent 715c4ba
@qrush qrush authored
View
4 config/pill.rb
@@ -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"
View
1  config/pills/production.rb
@@ -1,2 +1,3 @@
RELEASE_PATH = "/var/www/rubycentral/gemcutter.org"
+RAILS_ENV = "production"
require File.join(File.dirname(__FILE__), "..", "pill")
View
1  config/pills/staging.rb
@@ -1,2 +1,3 @@
RELEASE_PATH = "/var/www/rubycentral/staging.gemcutter.org"
+RAILS_ENV = "staging"
require File.join(File.dirname(__FILE__), "..", "pill")
Please sign in to comment.
Something went wrong with that request. Please try again.