lib/smartcloud/grids/buildpacker.rb in smartcloud-0.0.165 vs lib/smartcloud/grids/buildpacker.rb in smartcloud-0.0.166

- old
+ new

@@ -6,11 +6,11 @@ def initialize end def pack logger.formatter = proc do |severity, datetime, progname, message| - "\t\t\t-----> #{severity}: #{message}\n" + "\t\t\t-----> #{severity}: #{message}\n" end pack_rails if File.exist? "bin/rails" logger.info "Could not continue ... Launch Failed." @@ -20,14 +20,17 @@ def pack_rails # Remove server.pid if it exists FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid" logger.info "Performing bundle install ..." + logger.formatter = proc do |severity, datetime, progname, message| + "\t\t\t\t\t#{message}" + end Open3.popen2("bundle", "install", "--deployment", "--clean") do |stdin, stdout_andstderr, wait_thr| stdout_andstderr.each do |line| - logger.info "LINE: #{line}" + logger.info "#{line}" end - raise "bundle install failed." unless wait_thr.value.success? + raise "bundle install failed." if wait_thr.value.success? end # if system("bundle install --deployment --clean") # logger.info "Installing Javascript Dependencies & Pre-compiling Assets ..." # if system("bundle exec rails assets:precompile", out: File::NULL)