Skip to content
Browse files

fix build.sh output redirection to not bg the task

  • Loading branch information...
1 parent 5dfe315 commit 02deabbd29357053cf3b58b1b0ad7eab78b3dc5c @chriskite committed Sep 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/pull_request.rb
View
2 app/models/pull_request.rb
@@ -131,7 +131,7 @@ def run_build_command
env_vars = env_vars.map { |env,val| "CHRYSALIS_#{env}=#{val}" }.join(" ")
Rails.logger.info "Building #{build_path}"
- system("cd #{build_path} && #{env_vars} ./build/build.sh &> build.log")
+ system("cd #{build_path} && #{env_vars} ./build/build.sh 2>&1 > build.log")
raise "Error running build.sh" if 0 != $?
end

0 comments on commit 02deabb

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