File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -88,30 +88,27 @@ def with_dev_server
8888 yield
8989 ensure
9090 # Kill the server process
91- puts "Killing webpack dev server"
91+ # puts "Killing webpack dev server"
9292 check_cmd = "lsof -i :8080 -S"
93- kill_cmd = "kill -9 #{ webpack_dev_server } "
94- `#{ kill_cmd } `
95- 30 . times do
96- puts check_cmd
93+ 10 . times do
94+ # puts check_cmd
9795 status = `#{ check_cmd } `
98- puts status
96+ # puts status
9997 remaining_pid_match = status . match ( /\n [a-z]+\s +(\d +)/ )
10098 if remaining_pid_match
10199 remaining_pid = remaining_pid_match [ 1 ]
102- puts "Remaining #{ remaining_pid } "
100+ # puts "Remaining #{remaining_pid}"
103101 kill_cmd = "kill -9 #{ remaining_pid } "
104- puts kill_cmd
105- puts `#{ kill_cmd } `
102+ # puts kill_cmd
103+ `#{ kill_cmd } `
106104 sleep 0.5
107105 else
108- puts "Break"
109106 break
110107 end
111108 end
112109
113110 # Remove the dev-server packs:
114111 WebpackerHelpers . clear_webpacker_packs
115- puts "Killed."
112+ # puts "Killed."
116113 end
117114end
You can’t perform that action at this time.
0 commit comments