diff --git a/temp_file/playground_controller.rb b/temp_file/playground_controller.rb index 66f6f6f..0324c7f 100644 --- a/temp_file/playground_controller.rb +++ b/temp_file/playground_controller.rb @@ -169,7 +169,9 @@ class Admin::PlaygroundController < OrbitAdminController mode = Rails.env if mode.nil? unicorn_rails = %x[which unicorn_rails].sub("\n",'') content = "kill -s TERM `cat tmp/pids/unicorn.pid` && bundle exec #{unicorn_rails} -c config/unicorn.rb -D -E #{mode} | at now" - exec_other_command(content) + Thread.new do + Bundler.with_clean_env{system(content)} + end end def check_for_testers