need to run commands in production

This commit is contained in:
Sam 2013-11-26 14:16:35 +11:00
parent e926a41a14
commit 8cf48f2636
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class DockerManager::Upgrader
def run(cmd)
log "$ #{cmd}"
IO.popen("cd #{Rails.root} && #{cmd} 2>&1") do |line|
IO.popen("cd #{Rails.root} && RAILS_ENV=production #{cmd} 2>&1") do |line|
log(line.read)
end